How to detect clicking of TEdit?

From: Vertuas (vertuas_at_nospamcallistocs.freeserve.co.uk)
Date: 09/05/04


Date: Sun, 05 Sep 2004 08:36:27 GMT

Hi all

I am working on on a touch screen application and nedd to implement text
entry via an onscreen keyboard.

My keyboard is just a TPanel with lots on buttons on it. the button makes
letters, etc appear in the capion of a TLabel

I am using windows messages to get the text from an the the tedit
components. Messages WM_GETTEXT and WM_SETTEXT from within the keyboard's
panel

the problem that i now have if detecting when a TEdit recieves focus, but i
cannot use a normal event as all of me TEdits are dynamically created.

I have looked at the messages MW_NOTIFY whick i cannot get my form to detect
properly, and I have looked at WM_MOUSEACTIVATE, which i can get to work,
but cause some strange behavour of the control being selected.

Does anyone know on the message that i should de using and how to capture
that message??
Does anyone know why capturing WM_MOUSEACTIVE, and processing in, cause
problems??

Thanks again for you help

Vertuas

----------------------------------------------------------------------------

----