Subclassed Controls and Key Events

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Subclassed Controls and Key Events

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:13 pm

by hml >> Tue, 22 Oct 2002 11:00:17 GMT

I have a subclassed control that needs to react to key down event. I have reimplemented the keyDown event on the control class and added the necessary code.

When running thin client, all keys down events are transmitted even if I have used registerFormKeys method on the form listing the codes of the keys I am interested in. The registerFormKeys method doesn't appear to work on the keyDown event if it has been reimplemented on the control classes.

I could remove the key down methods on the controls and on each form the control is added to add an event handler calling methods on the control class, but would rather handle all the events within the control class.

Does anyone know if you can restrict what keys are sent for a control rather than just a form, or even give me a definitive answer that it is not possible?

Torrie Moore

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Subclassed Controls and Key Events

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:13 pm

by allistar >> Sun, 27 Oct 2002 23:32:00 GMT

Hi Torrie,
Sorry I can't help, but we do what you are trying to do with a lot
of our subclassed control classes (and we have > 800 of them).

Does it behave the same in thin client as it does in fat client?
Have you implemented the keyDown event on the form? Do you make sure that reimplemented method does an "inheritMethod(...)"?

Allistar.

------------------------------------------------------------------
Allistar Melville
Software Developer
Auckland, NEW ZEALAND

Greentree International,
Developer of Greentree Financial Software. ------------------------------------------------------------------


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 26 guests