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

[REBOL] Block or Object

From: Patrick:Philipot:laposte at: 26-Oct-2003 11:29

Hi List, How can the same thing be an object or a block ? See an example: ; a simple layout lay: layout [ text "Hello" button "Test" [mytest face] ] ; explore lay/pane mytest: func [ f [object!] /local f2 ][ ; here an object foreach face lay/pane [ print [face/style type? face] ] ; here a block f2: find lay/pane f print type? f2 ] view center-face lay Is this normal? What I am looking for is a way to navigate through window/pane to change some faces without the need of a variable. For example, with a layout composed of a,b,c,d,e I would like that a click on b will change c. In other words, knowing one face, being able to move to the next or the previous face. Is this possible? -- Best regards, Patrick