1. Win32Lib Color?
- Posted by Euman <euman at bellsouth.net>
Mar 23, 2001
-
Last edited Mar 24, 2001
Hello all,
Anyone off the top of their head know the answer to
setting the background of a control with
setWindowBackColor( List, {0, 0, 0} )
afterwards setting the color of the text
such as setTextColor( List, Red )
which doesnt work.
I'll probably find the answer on my own just thought
it'd be a good question as we near the next release
of win32lib.........
Euman
2. Re: Win32Lib Color?
- Posted by Derek Parnell <ddparnell at bigpond.com>
Mar 23, 2001
-
Last edited Mar 24, 2001
I don't know that one either. I've been trying to set the text color of an
edit control with no luck yet.
setWindowBackColor() should work okay. It does in 0.56.
------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."
----- Original Message -----
From: "Euman" <euman at bellsouth.net>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, March 24, 2001 3:01 PM
Subject: Win32Lib Color?
>
>
> Hello all,
>
> Anyone off the top of their head know the answer to
>
> setting the background of a control with
> setWindowBackColor( List, {0, 0, 0} )
> afterwards setting the color of the text
> such as setTextColor( List, Red )
> which doesnt work.
>
> I'll probably find the answer on my own just thought
> it'd be a good question as we near the next release
> of win32lib.........
>
> Euman
>
>
>
3. Re: Win32Lib Color?
>From: Derek Parnell <ddparnell at bigpond.com>
> I don't know that one either. I've been trying to set the text color of an
> edit control with no luck yet.
>
> setWindowBackColor() should work okay. It does in 0.56.
To set background color of edit control: Every time edit control receives
WM_PAINT or something similar, you must return a color value or brush, I
don't remember exactly. I can make an example if you want.
4. Re: Win32Lib Color?
Hi,
"Tone Skoda" wrote:
> To set background color of edit control: Every time edit control receives
> WM_PAINT or something similar, you must return a color value or brush, I
> don't remember exactly. I can make an example if you want.
This is exactly what Win32Lib does now, that's why it works. However, I
haven't worked out how to change the TEXT COLOR in some controls. Mind, you,
I haven't spent a lot of time trying yet either. I suspect I have to handle
subclassing a bit better.
------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."
5. Re: Win32Lib Color?
>From: Derek Parnell <ddparnell at bigpond.com>
> This is exactly what Win32Lib does now..
Sorrrry, I should read message better ... >:(