前面介绍了 label,separator,image,这次继续介绍各类 button 的创建,包括 pushbutton,togglebutton,radiobuttonbox。
(1) PushButton
syntax:
dgui createitem <ParentFormName> pushbutton /
button label <string> /
activatecb <command>
(2) ToggleButton
syntax:
dgui createitem <ParentFormName> togglebutton /
name
<string> /
labelname <string> /
parameter <string>
bdefault <#t|#f> /
activatecb <command>
(3) RadioButtonBox
syntax:
dgui createitem <ParentFormName> radiobuttonbox /
name
<string> /
parameter <string> /
tdefault <itemname> /
items /
<item1_label> <itemname> <"#t"|"#f"> /
<item2_label> <itemname> <"#t"|"#f"> /
<noborder >

本文详细介绍了如何使用dguicreateitem命令创建三种类型的按钮组件:PushButton、ToggleButton及RadioButtonBox,并提供了具体的语法示例。
8068

被折叠的 条评论
为什么被折叠?



