文件名称:button
介绍说明--下载内容均来自于网络,请自行研究使用
//建立顶级窗口
toplevel = XtVaAppInitialize[&app, "ArrowButton", NULL, 0,
&argc, argv, NULL, NULL]
//建立多选按钮的布局组件
n = 0
XtSetArg[args[n], XmNarrowDirection, XmARROW_RIGHT] n++
XtSetArg[args[n], XmNwidth, 100] n++
XtSetArg[args[n], XmNheight, 100] n++
arrow = XmCreateArrowButton[toplevel, "arrow", args, n]
XtManageChild[arrow]
toplevel = XtVaAppInitialize[&app, "ArrowButton", NULL, 0,
&argc, argv, NULL, NULL]
//建立多选按钮的布局组件
n = 0
XtSetArg[args[n], XmNarrowDirection, XmARROW_RIGHT] n++
XtSetArg[args[n], XmNwidth, 100] n++
XtSetArg[args[n], XmNheight, 100] n++
arrow = XmCreateArrowButton[toplevel, "arrow", args, n]
XtManageChild[arrow]
(系统自动生成,下载前可以参看下载内容)
下载文件列表
button
......\arrowbutton.c
......\CheckBox.ad
......\checkbox.c
......\dblclick.c
......\drawnbutton.c
......\Makefile
......\pushbutton.c
......\RadioBox.ad
......\radiobox.c
......\readme
......\smile.xpm
......\togglebutton.c
......\arrowbutton.c
......\CheckBox.ad
......\checkbox.c
......\dblclick.c
......\drawnbutton.c
......\Makefile
......\pushbutton.c
......\RadioBox.ad
......\radiobox.c
......\readme
......\smile.xpm
......\togglebutton.c