Difference between revisions of "ISDBMenuItem::Caption"

From MediaMonkey Wiki
Jump to: navigation, search
m (better description)
(note about access keys, note about ellipsis)
 
Line 4: Line 4:
  
 
A string that is shown as the description of the menu item.
 
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..."

Related Topics