Close DotNetBar TabStrip/TabItem
I'm testing on DevComponents.DotNetBar.TabStrip (Product Version 7.4.0.4). Moving between tabs is fine but I can't close the tab - the 'X' at the far right of the TabStrip (which does the close) is not recognised by TestComplete Object Spy. Only the tabs are child items of TabStrip - tabs are DotNetBar.TabItem.
I could use Click method with co-ordinates but this is not very reliable. Is there another way to do this?
As long as location relative to parent/associated object is consistent, using an offset and co-ordinate click calculated at run time is fine. I have to use them with a customised checkbox tree list. It has some custom event handlers that only trigger with a click event in the right place (over the checkbox). Only way to activate it is to use an offset derived from the co-ordinates of the tree node text of the node you want. But it's always calculated during the run, using retrieved co-ordinates of the text node container. Works perfectly.
Hard coded co-ordinates however, are a recipie for disaster ....