📄 listing_6_14.c
字号:
/************************************************************************* **** listing_6_14.c **** **** Two labels and a Form. This program demonstrates the use of **** XmForm and its applied constraints. **** *************************************************************************/#include <Xm/Form.h>#include <Xm/Label.h>Widget appshell, /* Application Shell */ theform, /* The Paned Window */ labels[2]; /* The children */void main( argc, argv ) int argc; char *argv[];{ appshell = XtInitialize( argv[0], "Listing_6_14", NULL, 0, &argc, argv ); theform = XmCreateForm( appshell, "TheForm", NULL, 0 ); XtManageChild( theform ); labels[0] = XmCreateLabel( theform, "Label_0", NULL, 0 ); labels[1] = XmCreateLabel( theform, "Label_1", NULL, 0 ); XtManageChildren( labels, 2 ); XtRealizeWidget( appshell ); XtMainLoop();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -