iamraj09
11 years agoContributor
How to know if Status bar is active or still working
I am currently new to Test Complete and I have problem in getting the status of the status bar. To explain that in breif.
1.When I dont perform any Operation it has 3 panels.
2.When I perfrom a particular operation, the whole status bar becomes busy and no panels are visible. After some seconds it becomes 4 panels it indicates that it is still loading in the back ground.
3.After the loading is completed it becomes 3 panels again. For better understanding please refer the screen shots of the status bar with this description.
Status_Bar=Sys.Process("Central").WinFormsObject("MainForm").WinFormsObject("_statusBar");
Methods tried:
Is_Enabled();
get_Enabled();
wPartCount();
wItembounds(); // tried this as the width of the panel was changing ...but it doesnt work it remains constant as 1148
Please suggest me any other methods that I can try.
1.When I dont perform any Operation it has 3 panels.
2.When I perfrom a particular operation, the whole status bar becomes busy and no panels are visible. After some seconds it becomes 4 panels it indicates that it is still loading in the back ground.
3.After the loading is completed it becomes 3 panels again. For better understanding please refer the screen shots of the status bar with this description.
Status_Bar=Sys.Process("Central").WinFormsObject("MainForm").WinFormsObject("_statusBar");
Methods tried:
Is_Enabled();
get_Enabled();
wPartCount();
wItembounds(); // tried this as the width of the panel was changing ...but it doesnt work it remains constant as 1148
Please suggest me any other methods that I can try.
- In your code, you saved value of StatusBar.wPartCount into a local variable StatusBarPane, and then output that saved value again and again in while loop.
If you want to get latest wPartCount in while loop, you should output StatusBar.wPartCount instead of StatusBarPane.
-Ocean