🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #24026

Re: XView Toolkit

#24026
From: Jordan Hayes
Date: Mon, 24 Jun 1991 20:38
36 lines
1457 bytes
Leif Andrew Rump <andrew@ambra.dk> writes:

	How does a simple Motif program look like?

Nearly the same as your XView example.  So what?

/jordan

#include <Xm/Xm.h>
#include <Xm/Frame.h>
#include <Xm/Label.h>

static String	fallbacks[] = {
    "*width:			200",
    "*height:			100",
    "*label.labelString:	Hello World!",
    NULL
};

main(argc, argv)
	int	argc;
	char	**argv;
{
	Widget		top, frame;
	XtAppContext	app;

	top = XtAppInitialize(&app, "Hello", (XrmOptionDescList)NULL,
	    (Cardinal)0, (Cardinal *)&argc, argv, fallbacks,
	    (ArgList *)NULL, (Cardinal)0);
	frame = XtCreateManagedWidget("frame", xmFrameWidgetClass, top,
	    (ArgList)NULL, 0);
	(void)XtCreateManagedWidget("label", xmLabelWidgetClass, frame,
	    (ArgList)NULL, 0);
	XtRealizeWidget(top);
	XtAppMainLoop(app);
}
Technical Details
Message-ID: <9106242038.AA27235@dwight.tcs.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!iggy.GW.Vitalink.COM!widener!ukma!hsdndev!spdcc!dirtydog.ima.isc.com!ism.isc.com!b1!xpert-mailer@expo.lcs.mit.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!iggy.GW.Vitalink.COM!widener!ukma!hsdndev!spdcc!dirtydog.ima.isc.com!ism.isc.com!b1!xpert-mailer@expo.lcs.mit.edu
From: jordan@tcs.com (Jordan Hayes)
Newsgroups: comp.windows.x,isc.mail.xpert
Subject: Re: XView Toolkit
Message-ID: <9106242038.AA27235@dwight.tcs.com>
Date: 24 Jun 91 20:38:06 GMT
Sender: usenet@b1.ism.isc.com (B1 Usenet Mailgate)
Organization: Teknekron Communications Systems, Inc., Berkeley, CA.
Lines: 36
In-Reply-To: <1991Jun24.090219.28243@resam.dk>
Errors-To: xpert-request@expo.lcs.mit.edu