That would work too. Force of habit for me to do it the other way as I have about 250 custom components I've created for my own use.
FYI, it wasn't me that started this thread. I've overriden WM_NCPAINT on my controls so that I can optionally have my borders change when a control get's focus, like what you see in Outlook, Excel, and Word. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Eddie Shipman Sent: Thursday, May 26, 2005 1:13 PM To: [email protected] Subject: RE: Disabling Tedit XP style --- Mark Bracey <[EMAIL PROTECTED]> wrote: > I've created derivative TEdits which respond to the CM_ENABLEDCHANGED > message where I change the color to reflect it's enabled state. > FWIW, Mark, you can do this and it'll make every TEdit that you drop on the form change without having to create a new control. This technique can be used to override the behaviour in many of the std controls. <snip> This could also be used to override the painting of the non-client area for repainting of the border by adding a WM_NCPAINT handler, procedure WMNCPaint(var Message: TMessage); message WM_NCPAINT; Not sure what it is exactly you want to do and I do not have Manifest installed so I can't test this for you. __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
