Search Locate Previous Next Contents

Time of Day (HM)


Description
Edit field which expects and assigns times as numeric scalars, represented as the decimal part of the day, i.e. 12:00 would be 0.5. This is compatible with Excel, and allows you to add times to dates easily.

The field has a simple ‘spin’ behaviour, which increments the minutes, and kicks over the hours when required. You can set the increment (e.g. to 60) to spin in appropriate units. To turn off normal CPro refresh during spinning, set Tracking=0.

If a single number is entered, it is taken as hours, on a 24-hr clock. The characters ‘N’ and ‘n’ are acceptable as ‘Now’.

Pressing <Enter> with a partial time redisplays it in its complete form. A further <Enter> confirms, and is passed through to the <OK> button if there is one.

Class Property Table
NameTypeDefaultDescription
HintString
StyleManyOf
TimeUserTime (decimal day from 00:00)
IncrementRuntimeIncrement in minutes (default 1)
DelayInt400Initial spin delay (ms)
IntervalInt50Spin repeat interval (ms)
TrackingBool1Update data every click
VisibleRuntimeBoolean singleton
ActiveRuntimeBoolean singleton


Continue to: Help Button (HP)
© Copyright Causeway Graphical Systems Ltd 2003