文件名称:fallbacks
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- zzr***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
//建立按钮上标签的字符串
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] -//建立按钮上标签的字符串
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]
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] -//建立按钮上标签的字符串
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]
(系统自动生成,下载前可以参看下载内容)
下载文件列表
fallbacks
.........\fallbacks.c
.........\Makefile
.........\fallbacks.c
.........\Makefile