cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Can we change the state of a push button/Icon from Creo ribbon

skadam-5
2-Guest

Can we change the state of a push button/Icon from Creo ribbon

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.

creo_btn.PNG

3 REPLIES 3

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?

@skadam-5 Hi, did you find the solution?

Top Tags