Hello guys,
Could you please suggest, how can I get access to the toolbar item? Please see below.
In general I need to check if this item sticked or not.
And also, could you please share the link to the PerformToolAction object description (methods, etc)
Thank you in advance!
Hi, issue is solved, thank you!
Another problem is apeared:
When I use next:
tlb = _
SwfWindow("QTE").SwfToolbar("MenuToolbar").GetContent
I`ve got an error:
IG : The supplied argument [] is not one of the expected type(s) : String or Int16Function file: [QualityCenter] Subject\Temp\SubRoutineFunctions.vbsLine (1967): "tlb = _".
Could you please suggest way to solve?
Thanks!
Thank you,
but could you please describe how to get the "Checked" property?
I provide "click" action by next way:
SwfWindow("QTE").SwfToolbar("MenuToolbar").PerformToolAction tbmgrToolbar, tbmgrDropDown, "MainMenu", menuSwfWindow("QTE").SwfToolbar("MenuToolbar").PerformToolAction tbmgrMenu, tbmgrClick, "MainMenu,"&menu, blottersDict.item(tabLabel)
But the action:
SwfWindow("QTE").SwfToolbar("MenuToolbar").GetItemProperty "MainMenu", blottersDict.item(tabLabel), "Checked"
can not be found :(
Thanks in advance
I am having trouble with the PerformToolAction not playing correctly, is there a place where all the member methods are explained?
Hi,
If you want to know if the StateButtonTool is checked, maybe you could try :
SwfWindow("Form1").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").GetItemProperty "UltraToolbar1", "StateButtonTool1", "Checked" in your If condition
Let me know if you have any further questions
Regards
Thank you for your response. It is clear how to press menu item. The thing that I trying to understend is - how could I check if the menu item is sticked or not. For example, on very schematic level like this: if Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 SwfWindow("Form1").SwfObject("_Form1_Toolbars_Dock_Area_Top") .PerformToolAction tbmgrToolbar, tbmgrClick, "UltraToolbar1", "StateButtonTool1".sticked then do smth else so smth end if