I got this method requires more parameters than were passed

  Canvas1.Graphics.ForeColor = RGB(255,255,255)
Graphics.FillRect (canvas1.graphics.width, canvas1.graphics.height, 32)



Brian Heibert
[EMAIL PROTECTED]


On Apr 21, 2006, at 3:05 AM, Terry Ford wrote:


On Apr 20, 2006, at 11:32 PM, Norman Palardy wrote:



On Apr 20, 2006, at 11:45 PM, Brian Heibert wrote:


Hi,

I checked for spaces
  Canvas1.Graphics.backColor = RGB(255,255,255)
  Canvas1.Graphics.DrawRect 0,0,319,499

found some and fixed it but it still doesn't work


Try fillrect instead of drawrect


The error was on the first line as there is no backColor property for anything but a window or an editfield.

It also appears that Brian is attempting to clear the canvas by painting a white background in a rectangle.

If he changes the first line to Canvas1.Graphics.ForeColor = RGB (255,255,255), he will outline of a rectangle the color white.The Graphics.DrawRect Method draws the outline of a rectangle in the current color. X and Y are the coordinates of the top-left corner." If he wished to fill the inside of the canvas white he should use the Graphics.FillRect Method as you stated. This draws a rectangle filled with the current color.

Terry




_______________________________________________
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>


_______________________________________________
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