Setting a checkbox programatically?

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE

Setting a checkbox programatically?

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

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.
oofoe
 
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.4 64-bit on Linux (Bodhi Linux 4.5)
newBert
 
Posts: 132
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

cron