Setting a checkbox programatically?

Guiserver, GTK-server, OpenGL, PostScript,

Setting a checkbox programatically?

Postby oofoe » Fri Jul 15, 2016 6:29 pm


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?

Testing can show the presence of bugs, but not their absence.
Posts: 60
Joined: Wed Sep 28, 2005 7:13 pm

Re: Setting a checkbox programatically?

Postby newBert » Mon Oct 03, 2016 8:45 am

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.5 64-bit on Linux (Peppermint 9)
Posts: 138
Joined: Fri Oct 28, 2005 5:33 pm
Location: France

Return to newLISP Graphics & Sound

Who is online

Users browsing this forum: No registered users and 1 guest