Re: How to detect clicking of TEdit?

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

  • Next message: Tony Mountifield: "Re: Allow activeX form to resize?"
    Date: Mon, 06 Sep 2004 06:30:12 GMT
    
    

      Thanks for all the replies guys

      I did have this workind by looking for the EN_SETFOCUS on my mainform to
    detect the selection on the edit, trouble is in my app, my controls are all
    layed out on panels, and for some reason, the WM_COMMAND message does get
    sent to the form when you put the edit on a panel.

      ggggrrrrrrrr

      any ideas?????

      "Vertuas" <vertuas@nospamcallistocs.freeserve.co.uk> wrote in message
    news:feA_c.86$di1.1@newsfe3-gui.ntli.net...
    > 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
    >
    >
    >
    >

    > --------------------------------------------------------------------------

    --
      > ----
      >
      >
      >
      >
    ----------------------------------------------------------------------------
    ----
    

  • Next message: Tony Mountifield: "Re: Allow activeX form to resize?"