newLISP Fan Club

Forum => newLISP Graphics & Sound => Topic started by: oofoe on July 15, 2016, 11:29:59 AM

Title: Setting a checkbox programatically?
Post by: oofoe on July 15, 2016, 11:29:59 AM
Hi!



I have something like this:


(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!
Title: Re: Setting a checkbox programatically?
Post by: newBert on October 03, 2016, 01:45:30 AM
I'm not a regular user of newLISP-GS(*) but I think you might try gs:set-selected...



(*) [size=85]I feel more comfortable with newLISP-Tk[/size]