Path: 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 Leif Andrew Rump writes: How does a simple Motif program look like? Nearly the same as your XView example. So what? /jordan #include #include #include 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); }