listing_5_1.c
来自「This source code has been tested under O」· C语言 代码 · 共 31 行
C
31 行
/************************************************************************* **** listing_5_1.c **** **** "Hello World" for Motif. This program demonstrates use of the **** XmLabel class for displaying text. **** *************************************************************************/#include <Xm/Label.h> /* Definitions for XmLabel (includes Xm.h) */Widget appshell, /* Application Shell */ the_label; /* The one and only label */void main( argc, argv ) int argc; char *argv[];{ appshell = XtInitialize( argv[0], "Listing_5_1", NULL, 0, &argc, argv ); the_label = XmCreateLabel( appshell, "TheLabel", NULL, 0 ); XtManageChild( the_label ); XtRealizeWidget( appshell ); XtMainLoop();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?