Page 1 of 1

Setting a checkbox programatically?

Posted: Fri Jul 15, 2016 6:29 pm
by oofoe
Hi!

I have something like this:

Code: Select all

(gs:panel 'Panel)
(gs:check-box 'Visible 'checkboxing "visible)
(gs:add-to 'Panel 'Visible)
And it's very nice. I get events when the user changes the value to my checkboxing function and so forth.

However, what if I want to set the value from the program?

(gs:set-value 'Visible true) does not work... Any suggestions?

Thanks!

Re: Setting a checkbox programatically?

Posted: Mon Oct 03, 2016 8:45 am
by newBert
I'm not a regular user of newLISP-GS(*) but I think you might try gs:set-selected...

(*) I feel more comfortable with newLISP-Tk