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

[REBOL] Re: Object question

From: anton::wilddsl::net::au at: 20-Sep-2007 12:56

Kai, You need to inspect the face which is returned by LAYOUT. Here is how you proceed, given the following layout: window: layout [panel [check check] panel [check check]]
>> type? window
== object!
>> window/type
== face
>> type? window/pane
== block!
>> length? window/pane
== 2
>> type? window/pane/1
== object!
>> window/pane/1/type
== face
>> window/pane/1/style
== panel
>> type? window/pane/1/pane
== block!
>> length? window/pane/1/pane
== 2
>> type? window/pane/1/pane/1
== object!
>> window/pane/1/pane/1/type
== face
>> window/pane/1/pane/1/style
== check etc. You can get and set the value of the first check like this: get-face window/pane/1/pane/1 set-face window/pane/1/pane/1 true The above refers to each face indirectly (relative to its parent face(s)). Depending on what you want to do, it might be better to set some words to point at the checks or panels directly. What are you trying to do with 6 groups of checkboxes? Anton.