Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

PATHDocumentation > Mac OS 8 and 9 > Human Interface Toolbox > Control Manager >

Mac OS 8 Control Manager Reference


Clock Value Flag Constants

You can use the clock value flag constants to specify behaviors for a clock control. You can pass one or more of these mask constants into the control ('CNTL' ) resource or in the initialValue parameter of NewControl . Note that the standard clock control is editable and supports keyboard focus. Also, the little arrows that allow manipulation of the date and time are part of the control, not a separate embedded little arrows control. The clock value flag constants are available with Appearance Manager 1.0 and later.

enum {
    kControlClockNoFlags        = 0,
    kControlClockIsDisplayOnly  = 1,
    kControlClockIsLive         = 2
};

Constant descriptions

kControlClockNoFlags
Indicates that clock is editable but does not display the current "live" time.
kControlClockIsDisplayOnly
When only this bit is set, the clock is not editable. When this bit and the kControlClockIsLive bit is set, the clock automatically updates on idle (clock will have the current time).
kControlClockIsLive
When only this bit is set, the clock automatically updates on idle and any changes to the clock affect the system clock. When this bit and the kControlClockIsDisplayOnly bit is set, the clock automatically updates on idle (clock will have the current time), but is not editable.

\xA9 1998 Apple Computer, Inc. – (Last Updated 19 Nov 98)