I'm about to give up on this but maybe someone can help:

I've got a complex form split into 3 regions each with a PageControl and
loads of data aware components such as dbgrid, dbedit, dbcombo as well as
labels etc.

I want to know when the user has selected one of the 3 regions by clicking
anywhere (label, dbedit, panel, dbgrid etc), and appropriately hilight that
region by changing the color of the background panel, grid etc.

Have tried trapping WM_LBUTTONDOWN etc as well as subclassing the form's
wndproc, but this doesn't work as some controls have their own message
loops.

I even tried to loop through all controls and set their FOnMouseDown private
fields (via TControl) to a common handler, but this is causing me exceptions
in database access for some unknown reason.

Any other ideas?

thanks,
Steve
---------------------------------------------------------------------------
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to