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

📄 test8.c

📁 安装DDD之前
💻 C
字号:
#include <Xm/PushB.h>#include <Xm/BulletinB.h>#include <Xm/DrawingA.h>#include <Xm/RowColumn.h>#include <Xm/Frame.h>Widget toplevel,       bb,            canvas,        canvas_frame;intmain(int argc, char **argv) {    Arg wargs[100];       int n = 0;            toplevel = XtInitialize(argv[0], "test7", NULL, 0, &argc, argv);     bb = XtCreateManagedWidget("board", xmBulletinBoardWidgetClass,			       toplevel, NULL, 0 );    XtVaSetValues(bb, XmNwidth, 500, XmNheight, 500, NULL);    n = 0;    XtSetArg(wargs[n], XtNwidth, 500); n++;    XtSetArg(wargs[n], XtNheight, 500); n++;    XtSetArg(wargs[n], XtNy, 100); n++;    XtSetArg(wargs[n], XtNx, 200); n++;    canvas = XtCreateManagedWidget("canvas", xmPushButtonWidgetClass,				   bb, wargs,n);    XtRealizeWidget(toplevel);/* Note: the following values are the result of * querying the current geometry. */{static XtWidgetGeometry Expected[] = {   CWWidth | CWHeight            ,    0,    0,  500,  500, 0,0,0, /* board */   CWWidth | CWHeight | CWX | CWY,  200,  100,  500,  500, 0,0,0, /* canvas */};/* toplevel should be replaced with to correct applicationShell */PrintDetails(toplevel, Expected);}LessTifTestMainLoop(toplevel);  exit(0);}

⌨️ 快捷键说明

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