[Gambas-user] DrawingArea and Draw.
Benoit Minisini
gambas at ...1...
Wed Nov 12 23:34:38 CET 2003
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 at ...1...
More information about the User
mailing list