> > Couple of comments however.
> > 1. Throwing away the WM_Enable messages works well but you need to let
at
> > least one WM_Enable True message through (so that it thinks it is
> enabled).
> > No problem there.
> > 2. Even so it only works if the edit box has Left Justified text. Yep,
you
> > heard me right, if the text is centred or right justified then a
different
> > drawing routine is obviously being used and the text still comes out
dark
> > grey.
> Er, neither of those comments make sense, and when I try it here it works
> for me anyway. :-)  Here, you have a go:
>

I've been playing a bit more and for completeness sake I thought I would
explain the first problem I listed above. If you create the edit box with
Enabled = False or you set Enabled to False before the edit box gets
displayed (and therefore before the window handle is created) then Windows
will create the window as disabled. Then the code to throw away the
WM_Enable messages works against you, because no messages ever get through
to set the window enabled again. Thus the text will always appear in gray.

David.
DB Solutions Ltd.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to