TE Edit Control Java / HTML-JavaScript Help
Product page

TerMenuSelect

Get menu item selection status

int TerMenuSelect( MenuId)
boolean TerMenuSelect2( MenuId)
int MenuId; menu id. Please refer to the 'command' property for a list of menu (or command) ids.

Description: If your program creates a menu outside the editor window, you can use this function to test if a menu item should be checked.

Return Value: The TerMenuSelect function returns one of the following constants:

MF_CHECKED = Check the menu item

MF_UNCHECKED = Uncheck the menu item

The TerMenuSelect2 function returns a true value if a menu item is to be checked. Otherwise it returns a false value.

Example:

boolean status;

status = tej.TerMenuSelect2(tej.ID_BOLD);

// The 'status' variable will be true if the current character has the bold style.