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 June 21, 2019, at 02:49:50 PM.

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