[Gambas-user] DrawingArea and Draw.

Leo Barnhoorn leo.barnhoorn at ...246...
Wed Nov 12 06:08:01 CET 2003


Hallo Benoit,

Thanks, you want to look in to it, this is just the starting face. I try to 
translate it from a PowerBasic source i wrote 10 years ago.

Regards,
Leo Barnhoorn.



On Tuesday 11 November 2003 11:46, Benoit Minisini wrote:
> 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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: magicbbs.tar.gz
Type: application/x-tgz
Size: 9957 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20031111/4a1a414b/attachment.bin>


More information about the User mailing list