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

[REBOL] View/Draw'ing with 'size...

From: media:quazart at: 22-Oct-2001 13:47

Hi I am starting to delve deeply into the depts of View and have come to realize that its actually easier to build dynamic Views using panes and faces directly instead of using VID. but When creating the button panels, it still is easier to make use of VID. There is one difference I have found, and this will be a teaser for the 'binding experts I think If you run the following snippet: rebol [] q-style: stylize [ qbutton: box 100x100 effect [ tile contrast 10 gradmul 0x1 120.120.120 80.80.80 draw [pen 0.0.255 box 0x0 size] ] ] view layout [styles q-style qbutton "HEY!"] You will notice that at the time of running, There seems to be a problem where size does not exist within the draw block... in a sense its normal... Thus I cannot modify my button's edge looks this way... I guess it is not bound to the face it (eventually) creates... BUT if I set the size within draw block directly by creating a pane face like this: rebol [] time-pane: make face [ color: none size: 100x100 offset: 30x30 pane: [] edge: none effect: [draw [pen 255.0.0 line 0x0 size]] ] view time-pane you will notice that it DOES recognize the size... If you print the code, they both reference size. NOW THE QUESTION: ----------------------------------- How can my draw block have its context (binding) set to the pane object as in the second code example while creating stylesheets? -Max ------------------------------------ Maxim Olivier-Adlhoch Technical Director Quaz'Art