| Add | Adds a new item to the end of the menu. |
| AddPopup | Adds a new submenu to the end of the menu. |
| GetText | Retrieves the text string of the menu item specified by the identifier. |
| Track | Displays the popup menu. |
menu = CreatePopupMenu();
submenu = CreatePopupMenu();
menu.Add( "menu 1", 1 );
menu.Add( "menu 2", 2, eeMenuGrayed );
menu.Add( "", 0, eeMenuSeparator );
submenu.Add( "menu 11", 11 );
submenu.Add( "menu 12", 12 );
menu.AddPopup( "more", submenu );
result = menu.Track( 0 );
if( result != 0 ) {
alert( menu.GetText( result ) );
}
Set menu = CreatePopupMenu
Set submenu = CreatePopupMenu
menu.Add "menu 1", 1
menu.Add "menu 2", 2, eeMenuGrayed
menu.Add "", 0, eeMenuSeparator
submenu.Add "menu 11", 11
submenu.Add "menu 12", 12
menu.AddPopup "more", submenu
result = menu.Track( 0 )
If result <> 0 Then
alert menu.GetText( result )
End If
Supported on EmEditor Professional Version 5.00 or later.
Send feedback on this topic to Emurasoft