Re: Win32Lib: drawText() in color?

new topic     » topic index » view thread      » older message » newer message

----- 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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu