Re: Win32Lib: drawText() in color?
- Posted by "Derek Parnell" <ddparnell at bigpond.com> Feb 01, 2004
- 464 views
----- Original Message ----- From: "Greg Haberek" <g.haberek at comcast.net> To: <EUforum at topica.com> Subject: Re: Win32Lib: drawText() in color? > > > ok it worked. apparently you have to call setTextColor() prior to every > drawText() call. I tried setting it like this: > > constant Main = create( Window .... ) > setTextColor( Main, Blue ) > > but apparently that didn't work. thanks for the heads up. perhaps this > should be pointed out in the docs? > Actually it should only need to be set once and not on each paint event. I've tracked the problem down and the reason is that whenever a window is opened, its text and background colours are reset to the default values. So for now, you can 'fix' the problem by setting the text colour in the Activate event for the window rather than each paint event - not that it uses much computing power. I've repaired this problem and will release it in the next version. -- Derek