ADDOBJECT "Date", name, xpos, ypos, width, height
Description
Date is used to display a standard date pickerobject in the output window. The required component, name, is the name of a variable that is added to the program to reference the object, it must follow standard variable naming conventions. 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 Date_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 date.
Properties Supported (see "Properties")
BorderStyle, Date, Enabled, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, LongFormat, 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, gotFocus, KeyDown, KeyUp, KeyPress, LostFocus, Timer
Example
REM Date Example
ADDOBJECT "Date", "Date", 100,100,90,20
Date.fontBold=true
SUB Date_Dropdown
PRINT "Date Dropdown"
END SUB
SUB Date_Change
PRINT "Date Changed to " & Date.Date
END SUB
Output
Related Items
ADDOBJECT, Events, Methods, Properties