Tags
root
工具栏的基础容器。
Attributes
none
Children
button
button
每个单独的按钮由名称/值对指定。
Attributes
text, tag, tooltip, image, command
Children
item
item
每个单独的项由名称/值对指定。
Attributes
text, tag, hint, command
Children
none
Example XML
<root>
<button tag="Ext_Filemenu_HV1"
text="Custom Entry 1"
tooltip="Custom file menu entry 1"
image="fileHelpStrip-24.png">
<item tag="Ext_Filemenu_HV1_A"
text="Custom Option A"
hint="Custom file menu sub-entry A"
command="tcl: tk_messageBox -title "Option A"
-message "Option A is working.""/>
<item tag="Ext_Filemenu_HV1_B"
text="Custom Option B"
hint="Custom file menu sub-entry B"
command="tcl: tk_messageBox -title "Option B"
-message "Option B is working.""/>
</button>
<button tag="Ext_Filemenu_HV2"
text="Custom Entry 2"
tooltip="Custom file menu entry 2"
image="fileOpenStrip-24.png"
command="tcl: tk_messageBox -title "
Custom Entry 2" -message "
Placeholder for a custom
open procedure."">
</button>
</root>