DatePicker control
A DatePicker control makes it easy for users to select
a date. It has two parts: a drop-down list box that displays the
date in a selected format, and a grid that resembles the MonthCalendar
control. Unlike the MonthCalendar control, which can be used to
select a range of dates, the DatePicker control is used to select
a single date.
Properties
DatePicker property |
Datatype |
Description |
---|---|---|
Integer |
Specifies the ASCII value of the key |
|
String |
Describes the control and/or |
|
String |
A label that briefly describes the control, |
|
AccessibleRole (enumerated) |
Describes the kind of user interface |
|
Boolean |
Specifies whether the user can select
|
|
Boolean |
Specifies whether the control has a border.
|
|
BorderStyle (enumerated) |
Specifies the style of the border of
|
|
Boolean |
Specifies whether PowerBuilder moves
|
|
Long |
Specifies the numeric value of the background This property does not work on the Microsoft Vista operating system. |
|
CalendarFontCharset |
FontCharSet (enumerated) |
Specifies the font character set used |
CalendarFontFamily |
FontFamily (enumerated) |
Specifies the font family (type style)
To set this property in the painter, select the Browse button |
CalendarFontName |
String |
Specifies the name of the typeface in To set this property in the painter, select the Browse button This property does not work on the Microsoft Vista operating system. |
CalendarFontPitch |
FontPitch (enumerated) |
Specifies the pitch (spacing) of the
This property cannot be set in the painter. |
CalendarFontWeight |
Integer |
Specifies the weight of the font in the To set this property in the painter, select the Browse button This property does not work on the Microsoft Vista operating system. |
CalendarItalic |
Boolean |
Specifies whether the text in the calendar
For more information, see Italic. To set this property in the painter, This property does not work on the Microsoft Vista operating system. |
Long |
Specifies the numeric value of the text This property does not work on the Microsoft Vista operating system. |
|
CalendarTextSize |
Integer |
Specifies the size of text in the calendar. |
Long |
Specifies the numeric value of the background This property does not work on the Microsoft Vista operating system. |
|
Long |
Specifies the numeric value of the color This property does not work on the Microsoft Vista operating system. |
|
Long |
Specifies the numeric value of the color This property does not work on the Microsoft Vista operating system. |
|
CalendarUnderline |
Boolean |
Specifies that text in the calendar is This property does not work on the Microsoft Vista operating system. |
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
String |
Specifies a custom format for the display |
|
DateValue |
Date |
Gets the date value assigned to the control. |
Boolean |
Specifies whether PowerBuilder puts the
|
|
String |
Specifies the name of the stock icon When the user drags the control, the icon displays when the control |
|
Boolean |
Specifies whether the drop-down calendar
|
|
Boolean |
Specifies whether the control is enabled
|
|
String |
Specifies the name of the typeface in |
|
WeekDay (enumerated) |
Specifies which day of the week displays |
|
FontCharSet (enumerated) |
Specifies the font character set used |
|
FontFamily (enumerated) |
Specifies the font family (type style)
|
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the
|
|
Integer |
Specifies the weight of the font in the |
|
DateTimeValue (enumerated) |
Specifies the format of the date displayed
|
|
Integer |
Specifies the height of the control in |
|
Boolean |
Specifies whether the text in the control
|
|
Date |
Specifies the latest date the user can |
|
Date |
Specifies the earliest date the user |
|
String |
Specifies the name of the stock pointer |
|
Boolean |
Specifies that characters should be displayed |
|
Boolean |
Specifies whether the control uses an
This property cannot be changed at runtime. |
|
Integer |
Specifies the tab value of the control |
|
String |
Specifies the tag value assigned to the |
|
String |
Gets the text associated with the control. |
|
Integer |
Specifies the size of the text in the |
|
TimeValue |
Time |
Gets the time value assigned to the control. |
Boolean |
Specifies whether the border of today’s
|
|
Boolean |
Specifies whether the label “Today:” followed
This property does not work correctly on the Microsoft Vista operating |
|
Boolean |
Specifies whether the text in the control
|
|
DateTime |
Specifies the date/time value |
|
Boolean |
Specifies whether the control is visible.
|
|
Boolean |
Specifies whether a number representing
This property does not work correctly on the Microsoft Vista operating |
|
Integer |
Specifies the width of the control in |
|
Integer |
Specifies the X position (the distance |
|
Integer |
Specifies the Y position (the distance |
Events
DatePicker event |
Occurs |
---|---|
When the control is clicked (selected) |
|
When the user has selected a date from |
|
Immediately before the Open event occurs |
|
Immediately after the Close event occurs |
|
When the control is clicked twice with |
|
When a dragged control is dropped on |
|
When a dragged control enters the control |
|
When a dragged control leaves the control |
|
When a dragged control is within the |
|
When the user has clicked the drop-down |
|
Just before the control receives focus |
|
When the user presses the F1 key or drags |
|
When the control loses focus (becomes |
|
When a Controls message occurs that is |
|
PreCreateWindow |
This event is reserved for future use |
When the right mouse button is pressed |
|
When the user has edited the contents |
|
When the Value property in a DatePicker |
Functions
DatePicker function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the control |
|
Integer |
Starts or ends the dragging of the control |
|
GetCalendar |
Long |
This function is reserved for future |
Integer |
Creates a reference to a context-specific |
|
PowerObject |
Returns a reference to the name of the |
|
String |
Returns the text displayed in the control |
|
Date |
Returns the date that the calendar uses |
|
Integer |
Returns the date and time in the Value |
|
Integer |
Makes the control invisible |
|
Integer |
Moves the control to a specified location |
|
Integer |
Returns the distance of the pointer from |
|
Integer |
Returns the distance of the pointer from |
|
Boolean |
Adds the specified event to the end of |
|
Integer |
Prints the control |
|
Integer |
Changes the size of the control |
|
Integer |
Sets focus to the specified control |
|
Integer |
Specifies the position of the control |
|
Integer |
Controls automatic redrawing of the control |
|
Integer |
Sets the value that is used by the calendar |
|
Integer |
Sets the date and time in the Value property |
|
Integer |
Makes the control visible |
|
Integer |
Triggers a specified event in the control |
|
Object |
Returns the type of the control |