Serge,
Start the ASkinDemo.exe application. In TestComplete create a project with the default script type of JScript. Add the following function to a script file –
Code:
function ShowMenus() {
Log.Message(“Main menu count – ” + Sys.Process(“ASkinDemo”).VCLObject(“MainForm”).MainMenu.Count);
for(var i = 0; i < Sys.Process("ASkinDemo").VCLObject("MainForm").MainMenu.Count; i++) {
Log.Message(Menu Caption – ” + Sys.Process(“ASkinDemo”).VCLObject(“MainForm”).MainMenu.Items(i).Caption);
}
}
In this function right click and select Run Current Routine. If you look in the log you will see a line showing the menu count which is 5 and then 5 log entries showing Menu Caption -. The expectation is that the menu captions should have been printed. For your application we should have seen Menu Caption – Managing, Menu Caption – Dialogs, etc. In our product with skins enabled we cannot see the captions for our menus. If we disable skins we then can see and access all of the captions. Please let me know if you have any other questions.
Thanks,
Jack