I am working on VB application, When I record the events on Main application window, It recognises the Main Window, but when when I click on Menu Items, it does not generate the script for this??
What is the reason?
How I can get the Menu Items recognised?
If your menu items were built using a 3rd party menu kit like stingray or something then you will have issues. You do have choices though you can use keystrokes to get into the menu or possible use virtual objects
Unfortunately even using keystrokes doesn't work very well against Stingray grids, as I have discovered this morning.
I have a drop down list in a grid and when I click on the arrow to "open" the list and then use obj.Type micDwn, the drop down list goes away and then the "virtual" mouse arrow goes to the next row in the grid instead of moving down the drop down menu list...ugh.
It is very annoying that HP/Mercury won't keep their QTP add-ins up-to-date with the latest releases of 3rd party applications...oh well...I'll keep looking for work arounds...wasting dozens of hours for something that should only take a few minutes with the correct tools.
Although your answer isn't related to the original question...
Have you tried just setting the value of the cell? Although I don't know what version of Stingray grids you are using, I have created many tests for these grids and the display control is immaterial as you only need to edit the cell value attribute. For example, a checkbox is a cell value of 1 or 0.