SelectMenu

<< Click to Display Table of Contents >>

Manual > Control Reference > Basic > SideMenu control > Method >

SelectMenu


 

Manipulates the current selection state of a menu item.

 


syntax

SelectMenu(

         popupId,

         position,

         bSelect

         [,autoOpen = TRUE]

         [,autoScroll = "visible"]

         )

 


Parameters

 

popupId


Type:

character


Popup id. For first level menu items, specify "root".

 

position


Type:

Number


The position to select the menu item, starting from 0.

 

bSelect


Type:

Boolean


TRUE - Select. FALSE - Deselect.

 

autoOpen


Type:

Boolean


TRUE - Automatically displays the popup menu when the menu item is selected.

FALSE - Do not automatically display the popup menu.

 

autoScroll


Type:

character


Whether to scroll.

"none" : No scrolling

"visible": If not displayed in the menu area, scroll minimally to make it visible.

"top": Scrolls to appear as close to the top of the menu area as possible.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 


reference