I have an ultra grid that has some error handling in some cells. When an error is detected, a red exclamation point is displayed and when I hover over the exclamation point, the text for the error is displayed as a tool tip. How can I capture this text? I have QTP 9.2 with .NET add-in and TestAdvantage for Windows Forms 2008 Vol. 2 CLR 2.0 installed.
You can use the TooltipText property
Please refer to the following link for more information:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v8.2~Infragistics.Win.UltraWinGrid.BeforeDisplayDataErrorTooltipEventArgs~TooltipText.html
Magued
I apologize, I misunderstood the case. Please submit a support request to Infragistics Developer Support.
Thank you. I'll do that.
Hi FredMan,
how did you do that with your Hovertooltip?I can't do that. I dont know how to get the Text from the Hovercell.
Best regards
David Mueller
David,
If you haven't already done so, you might check with your developers and see how the tooltip text is stored (see this forum post: http://community.infragistics.com/forums/p/19744/72704.aspx#72704).
We were able to pull the tooltip text for the toolbar buttons in some of our Windows apps by drilling into the Toolbars Manager and comparing the results to a pre-defined list that is stored in the data table:
Set toolbarsManager = SwfWindow("Company").SwfWindow("Purchase Order").SwfToolbar("_frmAttachments_Toolbars_Dock_").Object.ToolbarsManager toolTip = toolbarsManager.Toolbars.getItem(0).Tools.getItem(iItem).SharedProps.ToolTipText
Unfortunately, retrieving the tooltip text from a grid cell as referenced in FredMan's original post is a much different beast. It doesn't look like he received a solution from Infragistics' Developer Support.