[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-user
Subject:    Re: [Gambas-user] DrawingArea and Draw.
From:       Benoit Minisini <gambas () users ! sourceforge ! net>
Date:       2003-11-12 22:34:38
[Download RAW message or body]

Le Mercredi 12 Novembre 2003 06:08, Leo Barnhoorn a écrit :
> 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.

I think you forgot to set Draw.Transparent to FALSE. The text is transparent 
by default - This is the most common use when you draw text.

Regards,

-- 
Benoit Minisini
mailto:gambas@users.sourceforge.net



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic