listing_6_05.c

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

C
37
字号
/*************************************************************************                                                                    ****  listing_6_5.c                                                     ****                                                                    ****  Three labels and a Bulletin Board. This program demonstrates the  ****  use of XmBulletinBoard.                                           ****                                                                    *************************************************************************/#include <Xm/BulletinB.h>#include <Xm/Label.h>Widget	appshell,			/* Application Shell	      */	the_bb,				/* The Bulletin Board	      */	labels[3];			/* The children		      */void main( argc, argv )    int     argc;    char    *argv[];{    appshell = XtInitialize( argv[0], "Listing_6_05", NULL, 0, &argc, argv );    the_bb = XmCreateBulletinBoard( appshell, "TheBB", NULL, 0 );    XtManageChild( the_bb );    labels[0] = XmCreateLabel( the_bb, "Label_0", NULL, 0 );    labels[1] = XmCreateLabel( the_bb, "Label_1", NULL, 0 );    labels[2] = XmCreateLabel( the_bb, "Label_2", NULL, 0 );    XtManageChildren( labels, 3 );    XtRealizeWidget( appshell );    XtMainLoop();}

⌨️ 快捷键说明

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