|
VLMenuPlus Reference
|
|||||||||
|
|
|||||||||
|
This event is occurs when a menu item attributes needs to be setup. It is used to setup properties of individual menu items. Use this event when you want to have flexibiliy in appearence of individual menu items.
Syntax
The SetMenuItemAttributes event syntax has these parts:
Following code snippets shows the use of this event :
Sample 1
In this example, we are setting up all checked menu items to be displayed in bold font. Also we are setting all top level menu items (menu items that appear in the menu bar) to be displayed with Times New Roman font face. As you can see, changing menu display style at individual menu item level is extremely simple using this event. Sample 2
In this example, we are setting up picture corresponding to a menu item from a PictureBox object. Instead of a picturebox object you can specify a picture from an ImageList object as well.
Note Please note even if caption of any of the top level menu items matches with the captions specified in default bitmap list, control will not automatically show bitmap next to them. This behavior is by design. This behavior can be overridden by specifing bitmap for the toplevel menu items in this event. Following code snippet shows how to use default bitmaps for the top level menu items : Sample 3
|
|||||||||
|
©2001-2004 Viklele Associates. All rights reserved. For new products and software updates check Viklele Associates. |