Created
July 14, 2014 18:39
-
-
Save kosaki/1d00aaa8e59a780df9cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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