Setting a checkbox programatically?

Started by oofoe, July 15, 2016, 11:29:59 AM

Previous topic - Next topic

oofoe

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!
Testing can show the presence of bugs, but not their absence.

newBert

#1
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]
<r><I>>Bertrand<e></e></I> − <COLOR color=\"#808080\">><B>newLISP<e></e></B> v.10.7.6 64-bit <B>>on Linux<e></e></B> (<I>>Linux Mint 20.1<e></e></I>)<e></e></COLOR></r>