How does one create a Delphi Editmask for M/F or F/P or Y/N?
Posted on 2008-06-10
I am using Delphi 7 and mysql 5.0 with MySQLDAC.
I am creating an app which uses a 3rd party component (DBPanelEdit) which automatically generates the edit controls based on the table fields. I don't want to change the component code to handle Y/N, M/F and other one of two character inputs. I have EE'd and googled TEDITMASK but have not found a way to mask this although I have found useful OnKeyPress and other events but again I would have to edit the components code and I really don't want to do that.
I know it is probably something simple but I can't spend any more time searching.