⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listing_7_04.c

📁 This source code has been tested under OpenWindows 2.0, Sun s X11/NeWS server. For Xlib programs th
💻 C
字号:
/*************************************************************************                                                                    ****  listing_7_4.c                                                     ****                                                                    ****  Toggle buttons and Row-Column. This program demonstrates the      ****  appearance and interaction of XmToggleButton, both as a check     ****  box and as a radio button.                                        ****                                                                    *************************************************************************/#include <Xm/RowColumn.h>#include <Xm/ToggleB.h>Widget	appshell,			/* Application Shell	      */	row_col,			/* The parent                 */	buttons[3];			/* The Toggle Buttons	      */void main( argc, argv )    int     argc;    char    *argv[];{    appshell = XtInitialize( argv[0], "Listing_7_04", NULL, 0, &argc, argv );    row_col = XmCreateRowColumn( appshell, "RowCol", NULL, 0 );    XtManageChild( row_col );    buttons[0] = XmCreateToggleButton( row_col, "Btn_0", NULL, 0 );    buttons[1] = XmCreateToggleButton( row_col, "Btn_1", NULL, 0 );    buttons[2] = XmCreateToggleButton( row_col, "Btn_2", NULL, 0 );    XtManageChildren( buttons, 3 );    XtRealizeWidget( appshell );    XtMainLoop();}

⌨️ 快捷键说明

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