Printing a background color
Posted
#1
(In Topic #1564)
Enthusiast

I can't find anything on it, anybody know how to do it?
Posted
Guru

There is not a RichText way to set background font color only foreground so it's not possible for something like TextLabel.Text = sSomeString.
But in a Draw event using Paint.DrawRichtext() you should be able to use Paint.FillRect() to draw your background color first.
Posted
Guru

The default text color can be easily set with Paint.Background,
Paint.Background = Color.Red is the same as Paint.Brush = Paint.Color(Color.Red)
Posted
Regular

Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Enthusiast

1 guest and 0 members have just viewed this.


