Skip to content

Instantly share code, notes, and snippets.

@kosaki
Created July 14, 2014 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosaki/1d00aaa8e59a780df9cf to your computer and use it in GitHub Desktop.
Save kosaki/1d00aaa8e59a780df9cf to your computer and use it in GitHub Desktop.
#include <Xm/XmAll.h>
void main(int argc, char *argv[])
{
Widget toplevel, main_w, button;
XtAppContext app;
XtSetLanguageProc(NULL, NULL, NULL);
toplevel = XtVaAppInitialize(&app, "main", NULL, 0,
&argc, argv, NULL, NULL);
main_w = XtVaCreateManagedWidget("main_w", xmMainWindowWidgetClass,
toplevel, XmNscrollingPolicy,
XmAUTOMATIC, NULL);
button = XtVaCreateWidget("Hello World", xmLabelWidgetClass, main_w, NULL);
XtManageChild(button);
XtRealizeWidget(toplevel);
XtAppMainLoop(app);
}
http://www2.latech.edu/~acm/helloworld/motif.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment