Subject Re: [IBO] Re: More TIB_DateTimePicker problems for Time field
Author Geoff Worboys
> GB I don't see any need for a drop-down box. The current
> look and feel of the control is fine. It just needs to be
> able to link to a 'TIME' field in a table. I think that a
> TIB_EditEnh with an appropriate mask should work fine. I
> would it to be able to show/not show seconds based on
> developers choice.
<...>
> What I have done in my application is to use the standard
> Delphi DateTimePicker with two 'hidden' TIB_Edit boxes.
> When the user clicked/left the controls the values are
> passed to the TIB_Edit boxes which are linked to the
> appropriate fields.

Is there anything stopping you using TIB_EditEnh now?

Drop a TEditEnh control onto a form and click the "EditMask" property
editor button - you will get a dialog in which you can experiment with
different masks (and a control that you can use to copy the string
required for the IBO FieldsEditMask property).

Note: You have to use the non-IBO aware version to get the mask dialog
because the EditMask field is not published in TIB_EditEnh (since the
editmask must come from the dataset/connection).

It wont restrict hours to 12/24 and minutes to 60 but that will be
checked when assigned.

Geoff Worboys
Telesis Computing