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

📄 test2.c

📁 安装DDD之前
💻 C
字号:
#include <Xm/Xm.h>#include <Xm/ArrowB.h>#include <stdio.h>voidcb(Widget w, XtPointer userData, XtPointer cbs) {  XmArrowButtonCallbackStruct *abcs = (XmArrowButtonCallbackStruct *)cbs;  printf("ArrowButton ACTIVATE: click_count: %d\n", abcs->click_count);}intmain(int argc, char **argv){  XtAppContext theApp;  Widget toplevel;  Widget butt1;  toplevel = XtVaAppInitialize(&theApp, "drawingArea", NULL, 0,			       &argc, argv, NULL, NULL);  butt1= XtVaCreateManagedWidget("Button1", xmArrowButtonWidgetClass, toplevel, 				NULL);  XtAddCallback(butt1, XmNactivateCallback, cb, NULL);  XtRealizeWidget(toplevel);  {    static XtWidgetGeometry Expected[] = {   CWWidth | CWHeight            ,   50,   50,   23,   23, 0,0,0, /* Button1 */     };    PrintDetails(toplevel,Expected);};  LessTifTestMainLoop(toplevel);  exit(0);}

⌨️ 快捷键说明

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