View Full Version : symbolButton GUI refresh (update)?

01 January 2011, 07:25 PM
I have made a GUI, and i have an IK FK switch.

I used if statement for the -enable flag... The problem lets say i changed from IK to FK, my symbolButton stay the same, FK symbolButton stay not active.

How I can refresh my window or symbolButton to take the new -enable value?

01 January 2011, 08:48 PM
in the onClick procedure (I'm assuming the button calls a procedure)
You also need to toggle the button's 'enable' value.
There are many ways of toggling (or inverting), one of which is

int $state = 'checkBox -q -v $someCheckBox`;
checkBox -e -en (1 - $state) $someOptionMenuGrp;
if (1-$state == 1)
print "optionMenuGrp is now active";
print "optionMenuGrp is now inactive";

01 January 2011, 08:08 AM
Thank you a lot pixelranger.

CGTalk Moderation
01 January 2011, 08:08 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.