|Subject||Re: [IBO] IB_MaskEdit?|
> is there an IB_MaskEdit available?Hi Gunther.
Take a look at the free source code available at:
Included in that source code is an "enhanced" mask processor
(in Telesis_MaskEnh). This processor does perform dynamic
changing of masks (based on the contents of current editor).
It will not do specificially what you are requesting BUT it
does demonstrate how to create a mask processor and insert it
into IBObjects (using the IIB_MaskProcessor interface).
Note that edit mask properties on the tib_edit controls are
dynamically maintained by IBO so the only way to install a
mask in such instances is through the FieldsEditMask prop.
The enhanced mask is used by the new base editor class
TCustomEditEnh, which again shows how to hookup a custom
component into IBO (so it can be dropped on grids etc).
Be warned. From experience I can tell you that getting custom
masks to work smoothly is no small task. Perhaps you can
adapt the code above to do what you want and save some effort.