ISDBMenuItem::Caption: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(note about access keys, note about ellipsis) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
===Property description=== | ===Property description=== | ||
A string that is shown in the | A string that is shown as the description of the menu item. | ||
'''Access Keys''': Use <tt>&</tt> character in the caption to mark the access key for the item. When navigating with keyboard, user can the press <tt>Alt+<access key></tt> to jump directly to the item. | |||
'''Ellipsis''': While menu commands are used for immediate actions, more information might be needed to perform the action. This should be indicated by adding an ellipsis (<tt>…</tt>) at the end of the label. This usually happens when dialog is displayed or confirmation box is shown before real action occurs. | |||
===Example code=== | |||
<source lang="vb"> | |||
MenuItem.Caption = "Choose &tracks..." | |||
</source> | |||
===Related Topics=== | |||
*[http://msdn.microsoft.com/en-us/library/windows/desktop/aa511502.aspx#accessKeys MSDN: Windows UX Interaction Guidelines – Access Keys] | |||
*[http://msdn.microsoft.com/en-us/library/windows/desktop/aa511502.aspx#ellipses MSDN: Windows UX Interaction Guidelines – Using Ellipses] | |||
[[Category:Scripting|{{PAGENAME}}]] | [[Category:Scripting|{{PAGENAME}}]] |
Latest revision as of 15:39, 23 April 2013
CoClass SDBMenuItem, Interface ISDBMenuItem
Property Get/Let Caption As String
Property description
A string that is shown as the description of the menu item.
Access Keys: Use & character in the caption to mark the access key for the item. When navigating with keyboard, user can the press Alt+<access key> to jump directly to the item.
Ellipsis: While menu commands are used for immediate actions, more information might be needed to perform the action. This should be indicated by adding an ellipsis (…) at the end of the label. This usually happens when dialog is displayed or confirmation box is shown before real action occurs.
Example code
MenuItem.Caption = "Choose &tracks..."