Custom TEdit with input restrictions

182 views Asked by At

What methods should TEdit descendant override in order to react to the OnKeyPressed event itself, instead of some external function?

For clarification: my TEdit have certain symbols that can be typed in, but not all.
The most simple solution is to define OnKeyPressed in the form code, but I want to have an object that takes care of it itself, not delegating it to the TForm descendant.

0

There are 0 answers