property ExplorerTree.ShortcutPicture(Shortcut as String) as Variant
Specifies a custom-size picture assigned to a shortcut.

 TypeDescription 
   Shortcut as String A String expression that indicates the caption of the shortcut where a custom size picture is assigned.  
   Variant A String expression that indicates the path to the picture file or a string expression that indicates the base64 encoded string that holds a picture object. Use the eximages tool to save your picture as base64 encoded format. A Picture object being assigned to the shortcut.  
Use the ShorcutPicture property to assign a custom size picture to a shortcut. The ShowShortcutBar property specifies whether the control's shortcut bar is visible or hidden. The Shortcut property indicates the HTML caption of the shortcut that displays the specified group. Groups with the same Shortcut property are displayed in the same shortcut. The shortcut bar displays the first icon found in the HTML caption, if a custom size picture is not assigned to the shortcut using the ShortcutPicture property. Use the ShortcutPictureWidth and ShortcutPictureHeight properties to indicate the size of the picture being displayed in the shortcut bar. Use the ShortcutBarHeight property to define the height in pixels of one shortcut items in the shortcut bar. Use the ExpandShortcutCount property to expand the number of shortcuts in the control's shortcut bar. The ShorcutPicture property has no effect if the shortcut bar is not visible, or there is no Group assigned to the specified shortcut.

The following VB sample assign a custom size picture to the shortcut named "<img>1</img> <b>Set</b> 1":

With ListBar1
    .ShortcutBarHeight = 38
    .ShortcutPicture("<img>1</img> <b>Set</b> 1") = "D:\Temp\Icons\misc.gif"
End With

The following screen shot shows the shortcutbar when there is no items expanded:

The following screen shot shows the shortcutbar when there is a single shortcut expanded ( Set 1 )

 


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.