GetTopMenu

Return the menu handle of the window's main, top level menu.

Menu GetTopMenu();

Parameters

None

Return Value

A menu class object that can be used to access menu items.

Remarks

Raises an exception, Facilita.Exception.FCException, if the window does not have a top level menu.

Example

Menu m = notepadWindow.GetTopMenu();

IList<MenuItem> mitems = m.Items;

 

foreach(MenuItem item in mitems)

{

WriteMessage("isChecked = " + item.IsChecked);

WriteMessage("name=" + item.Name);

Menu subMenu = item.SubMenu;

...

}

Related:

 

This topic was last updated on January 13, 2022, at 02:42:23 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant