Subject Re: [IBO] Re: edit masks
Author Geoff Worboys
> Geoff...whether using the TEditMask formatting characters
> for both the EditMask and DisplayFormat properties of
> TIB_Query or PROPER in the CharCase property of TIB_Query,
> neither the input or output through IB_ComboBox is
> affected...however, using the above with UPPER, both
> display and edit is affected...i'm pretty sure that the
> total editmask interface is not implemented for the
> combobox object.

PROPER is an extension added by IBO, UPPER is just using
existing features of the Delphi controls - which explains
the difference in operation.

You are correct about edit masks not being implemented
in TIB_ComboBox - but this is not really an IBO "bug" just
a result of using the Delphi VCL and Windows API.

TIB_Edit derives from TCustomMaskEdit - it gets edit
mask capability.

TIB_ComboBox derives from TCustomComboBox - which has
nothing to do with edit control in the VCL heirarchy
at all, it goes directly to the Windows API which does
not provide this sort of capability.


Warning: Self-Promotion follows...

If the use of masks in combos is important to you could try
my Enhanced Components. See:
http://www.telesiscomputing.com.au/enhcomp.htm

The collection includes TIB_ComboBoxEnh - which is NOT
derived from the Windows combobox API but built on top of
TCustomEditEnh (my own enhanced editmask capable editor).

To be honest I have not made much use of edit masks in
comboboxes (I almost always use a fixed list which makes
edit masks redundant), but since it is based on the same
base as TEditEnh it should work.

--
Geoff Worboys
Telesis Computing