Time                                                                            Object

ADDOBJECT "Time", name, xpos, ypos, width, height

Description

Time is used to display a standard time picker object in the output window. The required component, name, is the name of a variable that is added to the program to reference the object. The required components, xpos, ypos, width, and height are numeric expressions that set the location and size of the object in pixels, measured from the upper left corner of the output window. Do not use a MSGBOX inside your Time_Change event: it will cause an error. This object is not available on Windows CE 2.0 devices. Use the .Date property to set the time.

Properties Supported (see "Properties")

BorderStyle, Date, Enabled, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, Height, Hwnd, Left, Name, ParentHWnd, TabStop, Tag, Text, Timer, Top, Visible, Width, WindowLong

Methods Supported (see "Methods")

Hide, Move, SetFocus, Show

Events Supported (see "Events")

Change, DropDown

Example

REM Time Example

ADDOBJECT "Time", "Time", 100,100,120,20

Time.Date = "09/02/04 03:57:01 PM"

SUB Time_Change

  PRINT "Time Changed to " & time.text

END SUB

Output

Related Items

ADDOBJECT, Events, Methods, Properties