前面介绍了 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 >