[Gambas-user] DrawingArea and Draw.

Benoit Minisini gambas at ...1...
Tue Nov 11 20:46:49 CET 2003


Le Mardi 11 Novembre 2003 08:37, Leo Barnhoorn a écrit :
> Hallo Benoit,

Hi, Leo,

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

Could you send me your complete project, as it can be a subtle bug ?

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...





More information about the User mailing list