您现在的位置是:源码地带 > 资源下载

//建立按钮上标签的字符串 label = XmStringCreateSimple["Hello World!"] n = 0 XtSetArg[args[n], XmNlab

资 源 简 介

//建立按钮上标签的字符串 label = XmStringCreateSimple["Hello World!"] n = 0 XtSetArg[args[n], XmNlabelString, label] n++ button = XmCreatePushButton[toplevel, "pushbutton", args, n] XtManageChild[button] XmStringFree[label] //设置回调函数 XtAddCallback[button, XmNactivateCallback, callback, NULL]

相 关 资 源