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

[REBOL] Re: check box setting

From: jelinem1:nationwide at: 28-Jun-2001 14:09

In the couple of /View programs I've written, I've ended up assigning words (ie variables) to all fields that change: checkboxes, input fields, etc. In the absence of detailed docs for some of the /View functionality (or maybe it's just me), I will end up looking at all the resulting structures and hack at thier usage. - Michael Jelinek From: [philb--upnaway--com]@rebol.com on 06/28/2001 11:36 AM Please respond to [rebol-list--rebol--com] Sent by: [rebol-bounce--rebol--com] To: cc: Subject: [REBOL] Re: check box setting Hi Francios, You will need to assign your check (box) a variable name .. for example view layout [cb: check yes button "State?" [print cb/data] ] If you dont want it enabled then you could use a different type of field an LED perhaps? Cheers Phil -- Original Message -- Guys, how do I set the value of a check box? Is there a doc that covers this issue..? I have an example below I would like to use....if function/text isn't equal to "HR" then then an alert will be generated and the checkbox returned to an unchecked status. Ideally I would like the checkbox to not even be "selectable" or even visable unless function/text = "HR" however, I have not been able to work out how to do this either :) udc: label right 95x24 "UDC" check [if function/text <> "HR" [alert "Not valid for this device" set udc/????? ????] return ] Any help appreciated Francois