Skip to content

Replies

0
Michael S.
Michael S. answered on Aug 24, 2011 8:49 PM

Laxmikant,

Here is an example of script that you can use with the methods that you mentioned.  You can run this script against the WinToolbarsBasicFeatures sample found in the samples that are installed with TestAdvantage.

'Example of GetItem method
Dim openItem
openItem = SwfWindow("Infragistics UltraWinToolbars").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").GetItem("Editors", 1)
MSGBOX("GetItem:  " & openItem)

'Example of GetItemsCount method
Dim editorItemsCount
editorItemsCount = SwfWindow("Infragistics UltraWinToolbars").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").GetItemsCount("Editors")
MSGBOX("GetItemsCount:  " & editorItemsCount)

'Example of GetContent method
Dim editorContent
editorContent = SwfWindow("Infragistics UltraWinToolbars").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").GetContent("Editors")
MSGBOX("GetContent:  " & vbCrLf & editorContent)

'Example of GetItemProperty
Dim editorItemProperty
editorItemProperty = SwfWindow("Infragistics UltraWinToolbars").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").GetItemProperty("Editors", 1, "Enabled")
MSGBOX("GetItemProperty:  "  & editorItemProperty)

 

 

I hope you find this helpful.  Let me know if you have further questions.

Michael S.

0
Michael S.
Michael S. answered on Jun 14, 2011 1:45 PM

Is there anything more we can help you with?

Michael S.

0
Michael S.
Michael S. answered on May 25, 2011 10:07 PM

Rebecca,

This functionality is not available in TestAdvantage.  I am going to submit this as a feature request on your behalf.  You will receive more information on this through the support case.

Michael S.