Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: how to get check box state? - mycheckbox/data

From: arolls::bigpond::net::au at: 24-Aug-2001 15:05

view layout [c: check [print either c/data ["on"]["off"]]]
> > hi. how do you get the state of a checkbox in view. > > I'd like to do something like this but it doesn't > > work... > > > > rebol [] > > view layout [ > > > > mycheckbox: check > > button "test" [probe mycheckbox/value] > > ] > > > > ... > > the above gives an error.. > > > > Try: > > probe mycheckbox/data > > 'Value only works in the action facet for the item itself. So > this would work: > > mycheckbox: check [probe value] > > though it isn't much use, except to save the value somewhere else: > > mycheckbox: check [SavedValueforCheckbox: value]
You could use it to enable or disable a group of options. view layout [check [print either value ["enable"]["disable"]]]