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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

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

skadam-5
10-Marble

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?

Madhavi
12-Amethyst
(To:skadam-5)

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

Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags