You need to set the opaque of the graphic to true before the background color displays.

It appears that newly created graphics are by default transparent.

set the opaque of it to true

before you show it and it should work.

On Nov 28, 2005, at 11:50 AM, R. Hillen wrote:

Hello list,

I wanted to make a green rect with a red edge, so I wrote

      create invisible graphic
      set the style of it to rectangle
      set the rect of it to 20,20,50,50
      set the foregroundcolor of it to 255,0,0 --RGB_Color
      set the backgroundcolor of it to 0,255,0 --RGB_Color
      set the linesize of it to 2
      show it

I got a white rect with a red edge. Why?

May  you help?

Richard.        
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
From http://www.shafermediastore.com/tech_main.html


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to