Menu item with check
My application has a menu item that can have a check next to it, similar to Notepad, next to the item Word Warp (which enables/disables Word Wrap).
I need to know the current setting of this menu item before changing it. Any ideas how I can do it ??
Re: Menu item with check
You should be able to use getMenu with a TMenuItem which has a checked property.
Dim tm As TMenu
Dim tmp As TMenu
Dim tmi As TMenuItem
Set tm = Window("Application=NOTEPAD.EXE Caption='Untitled - Notepad'").GetMenu(tpMenu)
Set tmp = tm.GetPopupMenu(3)
Set tmi = tmp.GetItem(1)