On 20 Apr 2006, at 00:18, Brian Heibert wrote:

How can I get a canvas to have a rectangle with a black border & white on the inside?


I tried this but it didn't work it didn't like graphics.backcolor
IDESpace.Graphics.backcolor=Rgb(255,255,255)


Put something like the following in your paint event before doing the rest of your drawing:

IDESpace.Graphics.ForeColor = rgb(255, 255, 255)
IDESpace.Graphics.FillRect 0, 0, IDESpace.Graphics.Width, IDESpace.Graphics.Height

IDESpace.Graphics.ForeColor = rgb(0, 0, 0)
IDESpace.Graphics.DrawRect 0, 0, IDESpace.Graphics.Width, IDESpace.Graphics.Height

Better still pass IDESPace.Graphics into a sub routine that takes "g As Graphics" and use that for all your drawing, or something similar.

--
Ian M. Jones
___________________________________
http://www.imijsoft.com
http://www.ianmjones.net (blog)


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to