Lists the images that can appear beside individual menu items.
Use this property if you want to add images to your items. Set it to an ImageList object containing the images you want to use and use the ImageIndex of each item to set the image you want to show.
Tags:
Describes the elements of the menu.
Use Items to access information about the elements in the menu. Item contain information about Caption, associated image and Tag.
<?php
function Unit467BeforeShow($sender, $params)
{
$items=array();
$subitems=array();
$subitems[]=array(
'Caption'=>'Sub Menu1',
'ImageIndex'=>0,
'SelectedIndex'=>0,
'StateIndex'=>-1,
'Tag'=>1
);
$subitems[]=array(
'Caption'=>'Sub Menu2',
'ImageIndex'=>0,
'SelectedIndex'=>0,
'StateIndex'=>-1,
'Tag'=>2
);
$items[]=array(
'Caption'=>'Top Menu',
'ImageIndex'=>0,
'SelectedIndex'=>0,
'StateIndex'=>-1,
'Tag'=>0,
'Items'=>$subitems
);
$this->PopupMenu1->Items=$items;
}
?>
Tags:
Occurs when the user clicks the control.
Use the OnClick event handler to respond when the user clicks the control.
Usually OnClick occurs when the user presses and releases the left mouse button with the mouse pointer over the control. This event can also occur when:
The user selects an item in a grid, outline, list, or combo box by pressing an arrow key.
The user presses Spacebar while a button or check box has focus.
The user presses Enter when the active form has a default button (specified by the Default property).
The user presses Esc when the active form has a cancel button (specified by the Cancel property).
Tags: