Home > Code Library > SmartMenuXP > Picture

Last Update 01 Nov 2001

 


Search:



  

Options:

   

   

   

   



SmartMenuXP Reference

Picture Property

Returns or sets a graphic to be displayed in a menu item.

Syntax

object.Picture(menuID) = LoadPicture(PathName)

object.Picture(menuID) [= picture]


The Caption property syntax has these parts:

Part Description
object An object expression that evaluates to a SmartMenuList object.
menuID A numeric expression that evaluates to a menu item.
PathName A string expression specifying the path and filename of the file containing a graphic
picture The Picture property of a Form object, PictureBox control, or Image control.


Remarks

Pictures are only displayed when the Style property has values smiNone or smiPicture.

Set SmartMenuXP1.MenuItems.Caption(1) = LoadPicture("MyPic.ico")

 

 

 
Copyright © 2001, Andrés Pons (andres@vbsmart.com). All rights reserved.