I don't think I have the option for basic/advanced view in testcomplete 7.52?
I can see a caption property but it is always blank. There are two properties that work to address the menu item but they both vary sometimes.
ControlIndex - varies between 26-28
ControlIndexInGroup - varies between 22-24
at the moment my workaround is to have a big if statement each time I want to click something from this menu where item 3, 4 and 5 are all the same thing eg:
If Not (Designer.pm_Context.menu_item3 Is Nothing) Then
Designer.pm_Context.menu_item3.Click
ElseIf (Designer.pm_context.menu_item4 Is Nothing) Then
Designer.pm_Context.menu_item4.Click
ElseIf (Designer.pm_context.menu_item5 Is Nothing) Then
Designer.pm_Context.menu_item5.Click
Else
Log.Error("'Format cells' from right click menu could not be invoked")
End If
but that is a bit clunky and doesn't always work either.