[Gambas-user] DrawingArea and Draw.

Leo Barnhoorn leo.barnhoorn at ...246...
Tue Nov 11 08:37:04 CET 2003


Hallo Benoit,

I have a problem whit Draw. If i use Draw.ForeColor this is OK, but when i 
make use of the Draw.BackColor it is not working at all.

  Draw.Begin(hConsole)				' DrawingArea
  Draw.BackColor = Color.Black
  Draw.ForeColor = Color.LightGray
  Draw.Font.Name = "Misc Console"
  Draw.Font.Size = 8
										
  INC iRow								|
  iYPos = iRow *  Draw.TextHeight(sChar)		|
 										|
  Draw.Text(sChar, iXPos, iYPos)				|------- This part is in a loop.
  INC iCol									|
  iXPos = iCol *  Draw.TextWidth(sChar)			|
    											
  Draw.End   

When i change the BackColor in the loop then it will not set.

      Draw.BackColor = Color.Blue

How can i properly use the Draw.BackColor.

Regards,
Leo Barnhoorn.





More information about the User mailing list