📄 test2.c
字号:
/* test of selection boxes */#include <Xm/Xm.h>#include <Xm/SelectioB.h>intmain(int argc, char **argv){ XtAppContext app; Widget toplevel, box; toplevel = XtVaAppInitialize(&app, "listTest", NULL, 0, &argc, argv, NULL, NULL); box = XmCreateSelectionBox(toplevel, "Box", NULL, 0); XtManageChild(box); XtRealizeWidget(toplevel); { static XtWidgetGeometry Expected[] = { CWWidth | CWHeight , 56, 72, 220, 297, 0,0,0, /* Box */ CWWidth | CWHeight | CWX | CWY, 11, 11, 198, 17, 0,0,0, /* Items */ CWWidth | CWHeight | CWX | CWY, 11, 28, 198, 135, 0,0,0, /* ItemsListSW */ CWWidth | CWHeight | CWX | CWY, 0, 0, 198, 135, 0,0,0, /* ItemsList */ CWWidth | CWHeight | CWX | CWY, 11, 173, 198, 17, 0,0,0, /* Selection */ CWWidth | CWHeight | CWX | CWY, 11, 190, 198, 31, 0,0,0, /* Text */ CWWidth | CWHeight | CWX | CWY, 0, 231, 220, 2, 0,0,0, /* Separator */ CWWidth | CWHeight | CWX | CWY, 11, 243, 66, 43, 0,0,0, /* OK */ CWWidth | CWHeight | CWX | CWY, 77, 243, 66, 43, 0,0,0, /* Cancel */ CWWidth | CWHeight | CWX | CWY, 143, 243, 66, 43, 0,0,0, /* Help */ }; PrintDetails(toplevel,Expected);}; LessTifTestMainLoop(toplevel); exit(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -