hiCreateSliderMenuItem
hiCreateSliderMenuItem(
?name s_itemHandle
?itemText t_menuItemText
?subMenu r_pulldownMenu
[ ?itemIcon l_menuIcon ]
[ ?disable g_disabled ]
[ ?statusTip t_statusTip ]
[ ?font t_font ]
)
=> r_hiSliderItem
Description
Creates a slider menu item that is used in functions that create a menu, all menus except simple or 2D menus. Slider menu items bring up submenus when selected. They can contain text (t_menuItemText) or icon (l_menuIcon) information.
A slider menu entry is a composite object. You must create all its subobjects before making your slider menu entries. Call hiCreateMenuItem or hiCreateSliderMenuItem to create your pulldown menu items and then hiCreatePulldownMenu to generate your slider menu entry.
You can use slider menu items within a popup or pulldown menu. You can also share them by placing the same menu item within different menus.
Arguments
|
?name s_itemHandle
|
|
|
SKILL handle to the menu item.
|
|
?itemText t_menuItemText
|
|
|
String representing a text menu item.
To set the access key for the menu item, add an ampersand before the desired letter. For example, if the menu item is Replace and you want P to be its access key, you would specify this argument as "Re&place".
|
|
?subMenu r_pulldownMenu
|
|
|
Unlike hiCreateMenuItem, a user-defined callback procedure is not associated with slider menu items but with the menu items in r_pulldownMenu. r_pulldownMenu is a menu created with hiCreatePulldownMenu and displays when this menu item is selected.
|
|
?itemIcon l_menuIcon
|
|
|
List representing an icon menu item.
|
|
?disable g_disabled
|
|
|
Disables the slider menu item when displayed.
|
|
?statusTip t_statusTip
|
|
|
The status text that is displayed in the status bar at the bottom of the window when the mouse hovers over the menu item. If you do not specify this argument, the menu item text (t_menuItemText) is displayed.
|
|
?font t_font
|
This argument is ignored.
|
Value Returned
|
r_hiSliderItem
|
The SKILL structure representing the menu item. The itemHandle, menuItemText, and pulldownMenu can be referenced by:
menuItem->hiMenuItemSym menuItem->hiItemText menuItem->hiSubMenu
|
Related Topics
Menu Functions
hiCreatePulldownMenu
hiCreateSimpleMenu
hiCreateMenuItem
Return to top