Discussion:
TDateTimePicker Font color bug
(too old to reply)
David Powell
2004-01-19 14:32:34 UTC
Permalink
Hi,

I noticed that when you change font properties for the TDateTimePicker that
all the properties work except the font's color. I have found one component
out there that claims to fix this, but really if the problem is not with the
common control Borland should fix this. It's a reall pain as a multimedia
developer as I reguarly color the interface for effect.

Has anyone else bumped into this and does anyone else know how to fix this?


Cheers,

Dave
Peter Below (TeamB)
2004-01-19 18:42:38 UTC
Permalink
Post by David Powell
I noticed that when you change font properties for the TDateTimePicker that
all the properties work except the font's color. I have found one component
out there that claims to fix this, but really if the problem is not with the
common control Borland should fix this. It's a reall pain as a multimedia
developer as I reguarly color the interface for effect.
The problem is with the common control, it offers no way to control the edit
boxes background color.

--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
David Powell
2004-01-20 15:44:48 UTC
Permalink
Post by Peter Below (TeamB)
The problem is with the common control, it offers no way to control the edit
boxes background color.
I suspected that was the case. However it does raise the question about the
date time picker control I found. Have the written a TDateTime picker from
scratch or have they found some way of accessing the edit boxes font
color...

http://www.profgrid.com/ &
http://www.shareit.com/product.html?productid=159601

I'm almost tempted to pay $20 to find out if/how they do it.


David
Peter Below (TeamB)
2004-01-20 19:16:13 UTC
Permalink
Post by David Powell
Post by Peter Below (TeamB)
The problem is with the common control, it offers no way to control the
edit
Post by Peter Below (TeamB)
boxes background color.
I suspected that was the case. However it does raise the question about the
date time picker control I found. Have the written a TDateTime picker from
scratch or have they found some way of accessing the edit boxes font
color...
It is probably possible by subclassing the control and taking over part of
the drawing. One could change the background by handling WM_ERASEBKGND, for
example. The message gets the hDC used for the subsequent paint processing
and one can change its background mode and foreground color as well. Whether
that has an effect on the text display depends on how the control implements
its WM_PAINT handler, though.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
David Powell
2004-01-21 08:47:32 UTC
Permalink
Sorry you misunderstand me; Changing the background color poses no problem
it is the changing of the TDateTimePicker's edit box font's color which is
the problem.

Dave

"Peter Below (TeamB)" wrote in message
Post by Peter Below (TeamB)
It is probably possible by subclassing the control and taking over part of
the drawing. One could change the background by handling WM_ERASEBKGND,
...
Post by Peter Below (TeamB)
Peter Below (TeamB)
Loading...