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

/span does not work with backdrop, is it a bug ?

 [1/3] from: arngar:gma:il at: 11-Jun-2007 12:01


Hello, I try using the /span, it works great for components ... but the backdrop property of the window not follow the /span behavior ?? the button is in the middle of the window (this is the good behavior), but the window is not black, the background was scale as the button ... as if it was a component also ... rebol [ ] screen-size: system/view/screen-face/size win: layout/size [ backdrop black at 840x525 button 100x50 "hello" ] 200x200 win/span: 1680x1050 view/new win do-events Any Idea ? Arnaud

 [2/3] from: arngar:gmai:l at: 11-Jun-2007 12:07


Well, if I just add the size it works: backdrop1680x1050 black => I thought the backdrop was automatically bounds to the window size ..., as a property of the window. Le 11 juin 07 =E0 12:01, Arnaud Garcia a =E9crit :

 [3/3] from: anton:wilddsl:au at: 12-Jun-2007 19:31


Hi Arnaud, The last thing svv/vid-styles/backdrop/init does is set SIZE to PANE-SIZE. But this is not enforced in REDRAW later, see svv/vid-styles/backdrop/feel You could supply your own REDRAW function: win: layout [ size 200x200 backdrop black feel [ redraw: func [face action position][ face/size: face/parent-face/span ] ] at 840x525 button 100x50 "hello" ] win/span: 1680x1050 view/new win do-events Note, you can use BACKCOLOR and BACKEFFECT to affect the window face directly: win: layout [ size 200x200 backcolor black at 840x525 button 100x50 "hello" ] win/span: 1680x1050 view/new win do-events Regards, Anton.