Setting a checkbox programatically?

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Post Reply
oofoe
Posts: 60
Joined: Wed Sep 28, 2005 7:13 pm
Contact:

Setting a checkbox programatically?

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

newBert
Posts: 156
Joined: Fri Oct 28, 2005 5:33 pm
Location: France

Re: Setting a checkbox programatically?

Post 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
BertrandnewLISP v.10.7.6 64-bit on Linux (Linux Mint 20.1)

Post Reply