listing_6_07.c

来自「This source code has been tested under O」· C语言 代码 · 共 39 行

C
39
字号
/*************************************************************************                                                                    ****  listing_6_7.c                                                     ****                                                                    ****  Lots of labels and a RowColumn widget. This program is the base   ****  for all of the figures in the section of XmRowColumn.             ****                                                                    *************************************************************************/#include <Xm/RowColumn.h>#include <Xm/Label.h>Widget	appshell,			/* Application Shell	      */	rowcol,				/* The RowColumn widget     */	labels[5];			/* The children		      */void main( argc, argv )    int     argc;    char    *argv[];{    appshell = XtInitialize( argv[0], "Listing_6_07", NULL, 0, &argc, argv );    rowcol = XmCreateRowColumn( appshell, "RowCol", NULL, 0 );    XtManageChild( rowcol );    labels[0] = XmCreateLabel( rowcol, "Label_0", NULL, 0 );    labels[1] = XmCreateLabel( rowcol, "Label_1", NULL, 0 );    labels[2] = XmCreateLabel( rowcol, "Label_2", NULL, 0 );    labels[3] = XmCreateLabel( rowcol, "Label_3", NULL, 0 );    labels[4] = XmCreateLabel( rowcol, "Label_4", NULL, 0 );    XtManageChildren( labels, 5 );    XtRealizeWidget( appshell );    XtMainLoop();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?