C++ Question Sketchpad colors

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
587
Reaction score
47
Points
43
Location
Happy Wherever
Hi All,

Can we draw text in Sketchpad in black ?
I've tried searching and all I found was that if "black (0) is specified then SetTextColor is not called so text is printed in last specified color".....
But can we actually print in black ?
Any help appreciated.
 

GLS

Well-known member
Orbiter Contributor
Addon Developer
Joined
Mar 22, 2008
Messages
5,355
Reaction score
2,253
Points
188
Website
github.com
I'm sure its possible, because I did it. Just call SetTextColor() with 0 (or you can feed it a RGB macro) and set the background color to something different (duh!), or background mode to transparent, and it should work.
 

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,491
Reaction score
599
Points
128
Website
users.kymp.net
You can also try setting the color to 0xFF000000 (in D3D9Client alpha is also supported). In some cases setting the color to '0' may disable it. Since it's not visible. If I recall QuickPen and QuickBrush would do that.
 
Top