Forum Discussion

mustak_m's avatar
mustak_m
Occasional Contributor
13 years ago

How to get the tooltip of toolbar buttons

Hi,



I want to click on toolbar button using toolbar button's tooltip text as each button contains some image on it. I can use index but buttons are customizable, hence positon of the each buttons is not fixed.



Class type: ToolbarWindow32



Any suggestions or thoughts on this will be helpfull.



Thanks
  • Hi Mustak,


    You can easily perform your task using the MSAA engine. To enable MSAA for your toolbar, open Project Properties - MSAA Options, add the class of your toolbar buttons (ToolbarWindow32) to the list of accepted windows and select the check box in this row.

    Your toolbar buttons will be recognized by the MSAA engine and the Caption property will hold the button's tooltip text. Then, you can use this property to recognize toolbar buttons in your tests.


    Ann