TimeControl Xojo plugin

TimeControl Control

TimeControl is a time selection control.

This variation of the control is for old style Xojo Window class.

Note:
The control uses native time selectors, or native theme rendering on some platforms and therefore the limitations and look and feel will depend on the Target operating system.


TimeControl on macOS Mojave in dark mode

Time control shown on macOS X El Capitan, Ubuntu Linux, Raspberry PI and Windows system. (The language locale is not shown with same settings on all of the pictures)

RectControl
   TimeControl

control TimeControl

Properties

DebugDataSizeUsed for internal quality control of the plugin.
Enabled (Inherited) Determines if the control should be enabled when the owning window is opened.
Handle (Inherited) Returns a handle to the control.
HasBorderIf set to false then border on the control is skipped.
Height (Inherited) The height (in points) of the control.
HoursUse this property to set or get the Hours value of the control.
Index (Inherited) If the control is used in a control set, this specifies the control's index in the set.
Left (Inherited) The left side of the control in local coordinates (relative to the window)
LinuxFontBoldUse this property to determine if the font on Linux targets should be bold faced.
LinuxTextFontUse this property to determine the font on Linux Targets.
LinuxTextSizeUse this property to determine the font size on Linux Targets.
LinuxTextUnitSets the unit of the FontSize.
MacFontBoldUse this property to determine if the font on MacOS targets should be bold faced.
MacHideBackgroundIf set to true then background is hidden on t he control, this also includes the border regardless of the setting of the HasBorder property.
MacTextFontUse this property to determine the font on MacOS Targets.
MacTextSizeUse this property to determine the font size on MacOS Targets.
MinutesUse this property to set or get the Minutes value of the control.
MouseX (Inherited) The X coordinate of the mouse (points). Measured from the top-left corner of the window.
MouseY (Inherited) The Y coordinate of the mouse (points). Measured from the top-left corner of the window.
PanelIndex (Inherited) If the control has been placed on a TabPanel or PagePanel control, this is the panel (page/tab) that the control is on. If the control is not on a panel, it returns -1.
SecondsUse this property to set or get the Seconds value of the control.
ShowSecondsThis property determines if seconds should be shown or no in the control. Set this property to true to show seconds.
TimeFormatDefines the display format of the time.
TimeValueUse this property to set or get the time of the control.
Top (Inherited) The top of the control in local coordinates (relative to the window).
Visible (Inherited) Determines whether the control is visible when its owning window is opened. The default is True: the control is visible.
Width (Inherited) The width (in points) of the control.
WinFontBoldUse this property to determine if the font on Windows targets should be bold faced.
WinTextFontUse this property to determine the font on Windows Targets.
WinTextSizeUse this property to determine the font size on Windows Targets.
WinTextUnitSets the unit of the FontSize.
Window (Inherited) The control's parent window.

Methods

Close (Inherited) Closes a control.
ReloadEventsReloads events if having used AddHandler to subscribe events.
SetFocusUse this method to manually give the control focus.

Events

Close (Inherited) The control is about to close.
ConstructContextualMenu (Inherited) This event is called when it is appropriate to display a contextual menu for the control.
ContextualMenuItemSelected (Inherited) Fires when a contextual menuitem selectedItem was selected but the MenuItemSelected event and the MenuHandler for the MenuItem did not handle the menu selection.
DragEnter (Inherited) Fires when the passed DragItem enters the RectControl.
DragExit (Inherited) Fires when the passed DragItem exits the RectControl.
DragOver (Inherited) Fires when the DragItem is over the RectControl.
DropObject (Inherited) The item represented by Obj has been dropped on the control.
GotFocusThis event is fired when a the control gets the input focus.
KeyDownStandard Xojo KeyDown event
KeyUp (Inherited) Fires when the passed Key is released in the control that has the focus.
LostFocusThis event is fired when a the control looses the input focus.
MacMouseDownThis event is fired when a when the Mouse goes down on the control. This event is only fired on MacOS Targets.
MouseDrag (Inherited) The mouse button was pressed inside the control and moved (dragged) at the location local to the control passed in to x, y. The user has moved the mouse inside the control while the mouse button is held down. This event handler receives parameters that indicate where the mouse is in coordinates local to the control.
MouseEnter (Inherited) The mouse has entered the area of the control.
MouseExit (Inherited) The mouse has left the area of the control.
MouseMove (Inherited) The mouse has moved within the control to the coordinates passed. The coordinates are local to the control, not to the window.
MouseWheel (Inherited) The mouse wheel has been moved.
ValueChangedThis event is fired when a portion or all of the date changes in the control.

Constants

Version = 9.1

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit