How to check the disabled menu items
I need to check the specific menu item is disabled or not
e.g: In Edit menu Paste menu item won't be enabled until i do copy.
I need to check Paste is disabled until i do copy. Please can anyone help to check this.
Version of TP:6.1
Re: How to check the disabled menu items
Once you bring up the edit menu, do the following...
Dim menu as TMenu
Dim menuItem as TMenuItem
set menu = Window(attach name).GetMenu(tpPopupMenu)
For int i = 1 To menu.Count
set menuItem = menu.GetItem(1)
if menuItem.Text = "Paste" then
if menuItem.Enabled = True
else return false
Check before you do copy and after you do copy.