C++ Question Sketchpad colors

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
611
Reaction score
52
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,914
Reaction score
2,908
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,666
Reaction score
795
Points
128
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