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

[REBOL] Re: Style sheet problem + "OnChange" behavior - how to implement?

From: dockimbel:free at: 8-Jul-2001 10:53

Hi Geza, You are confusing VID keywords and facets: 'backdrop and 'origin are part of the VID keywords so they have no meanings in a face context. When 'mypanel is created in the stylesheet, these 2 words are just added in the face context (no errors to signal) but without any visible effect for the face. Here's my version : sty: stylize [ mypanel: panel water edge [effect: 'bevel] ] main: layout [ styles sty across mypanel 150x150 [ origin 1x1 across label "hello" field ] mypanel 200x100 [ origin 1x1 text-list data [ "One" "Two" "Three" ] ] ] view main You could also write the stylesheet using the 'with keyword : sty: stylize [ mypanel: panel with [ color: water edge: [effect: 'bevel] ] ] Last thing: in order to see your bevel effect, you have to set the 'size of your edge (which is by default 0x0). For example : sty: stylize [ mypanel: panel water edge [effect: 'bevel size: 2x2 color: water] ] HTH, DocKimbel. Geza wrote: