Forum Discussion
Ribbons and tool bars like this are such that the buttons are not individual objects themselves but are items on the tool bar. To interact with the buttons, you would use the method on the TdxRibbon of "ClickItem" which takes a parameter of either a string correponding to the item or the item index.
Actually how can I able to access using the Click event and I'm using TdxRibbion and TdxBarManager->TdxBar->TdxBarLargeButton. So, currently the TdxBar is fully detected. But, I need to get the control of TdxBarLargeButton which is placed in the TdxRibbon.
And I have read the above link, it does not explains clearly that how can I able to access the TdxLargeBarButton. And should I need to do the changes in Delphi code or do the changes in TestComplete?. And in the Supported DevExpress components, they have not included the TdxBarLargeButton components. And DevExpress, also replied in this link.
Please provide me the detail explanation (like I need to add extra code in Delphi or change the settings in TestComplete) to access the TdxBarLargeButton from the Spy. If possible, please mention some example. Thanks in advance.
- tristaanogre8 years agoEsteemed Contributor
As mentioend, the large button is not something that you're going to access... you're going to use "ClickItem" to click on the specific part of your ribbon.
So, for example, to click on "New", you'll either do something like ClickItem(0) or ClickItem("New")
The buttons themselves are not supported controls... the ribbon bar is. Hence, you work with the ribbon bar. If your object is to click on the button, ClickItem should suffice.
Related Content
- 11 years ago