Can we change the state of a push button/Icon from Creo ribbon.
I want to change the state of a push button when it is first clicked, and on next click reset the state.
e.g. View -> Show tab from Creo is shown below.
Doesn't that just mean you use a toggle button? I haven't done any ribbon programming, but any graphical interface stuff I've done you use a toggle button if you want it to retain a pressed (or unpressed) state after the user has clicked on it.
Thanks Kenneth.
Yes, it means like toggle button. So I tried to set the toggle style to the button ( using ProUIPushbuttonButtonstyleSet).
But here it requires the dialog handle to which the button belongs, and I have the button in the Ribbon, so what argument can I use here?
( I tried using NULL as first argument, but it returned giving PRO_TK_BAD_INPUTS error).
Is there a different method to use the toggle button in the Ribbon?