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 you want to |
|
|
String |
Describes the control and/or its purpose for use by |
|
|
String |
A label that briefly describes the control, such as |
|
|
AccessibleRole (enumerated) |
Describes the kind of user interface element that |
|
|
Boolean |
Specifies whether the user can select the text TRUE — The user can select the text string in FALSE — The user can |
|
|
Boolean |
Specifies whether the control has a border. Values TRUE — Control has a border FALSE — Control does not have a |
|
|
BorderStyle (enumerated) |
Specifies the style of the border of the control. StyleBox! StyleLowered! StyleRaised! StyleShadowBox! |
|
|
Boolean |
Specifies whether PowerBuilder moves the control to TRUE — Control moved to top. FALSE |
|
|
Long |
Specifies the numeric value of the background color This property does not work on the |
|
|
CalendarFontCharset |
FontCharSet (enumerated) |
Specifies the font character set used for the text |
|
CalendarFontFamily |
FontFamily (enumerated) |
Specifies the font family (type style) used for the AnyFont! Decorative! Modern! Roman! Script! Swiss! To |
|
CalendarFontName |
String |
Specifies the name of the typeface in which the To set this property in the painter, select This property does not |
|
CalendarFontPitch |
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font used for Default! Fixed! Variable! This |
|
CalendarFontWeight |
Integer |
Specifies the weight of the font in the calendar in To set this property in the painter, select This property does not |
|
CalendarItalic |
Boolean |
Specifies whether the text in the calendar is TRUE — Text is FALSE — Text is not italic For more information, see Italic. To set this property in the This |
|
Long |
Specifies the numeric value of the text color in -2 to 16,777,215. For more information This property does not work on the Windows |
|
|
CalendarTextSize |
Integer |
Specifies the size of text in the calendar. The |
|
Long |
Specifies the numeric value of the background color This property does not work |
|
|
Long |
Specifies the numeric value of the color used for This property does not work |
|
|
Long |
Specifies the numeric value of the color used for This property does not work |
|
|
CalendarUnderline |
Boolean |
Specifies that text in the calendar is underlined. This property |
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
String |
Specifies a custom format for the display of the |
|
|
DateValue |
Date |
Gets the date value assigned to the control. The |
|
Boolean |
Specifies whether PowerBuilder puts the control TRUE — FALSE — When the control is clicked, the |
|
|
String |
Specifies the name of the stock icon or the file When the user drags the control, the |
|
|
Boolean |
Specifies whether the drop-down calendar is aligned TRUE — The calendar is aligned with the right FALSE — The calendar is |
|
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Control can be FALSE — Control cannot be |
|
|
String |
Specifies the name of the typeface in which the |
|
|
WeekDay (enumerated) |
Specifies which day of the week displays on the |
|
|
FontCharSet (enumerated) |
Specifies the font character set used for the text |
|
|
FontFamily (enumerated) |
Specifies the font family (type style) used for the AnyFont! Decorative! Modern! Roman! Script! Swiss! |
|
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font used for Default! Fixed! Variable! |
|
|
Integer |
Specifies the weight of the font in the control in |
|
|
DateTimeValue (enumerated) |
Specifies the format of the date displayed in a DtfCustom! DtfLongDate! DtfShortDate! DtfTime! |
|
|
Integer |
Specifies the height of the control in PowerBuilder |
|
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not italic |
|
|
Date |
Specifies the latest date the user can select from |
|
|
Date |
Specifies the earliest date the user can select |
|
|
String |
Specifies the name of the stock pointer or the file |
|
|
Boolean |
Specifies that characters should be displayed in |
|
|
Boolean |
Specifies whether the control uses an up-down TRUE — The control has an up-down FALSE — The control has a drop-down arrow This property |
|
|
Integer |
Specifies the tab value of the control within the |
|
|
String |
Specifies the tag value assigned to the |
|
|
String |
Gets the text associated with the control. The |
|
|
Integer |
Specifies the size of the text in the control, in |
|
|
TimeValue |
Time |
Gets the time value assigned to the control. The |
|
Boolean |
Specifies whether the border of today’s date on the TRUE — The FALSE — The |
|
|
Boolean |
Specifies whether the label “Today:” followed by TRUE — The Today section is displayed FALSE — The Today section is not This property does not work correctly on |
|
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not underlined |
|
|
DateTime |
Specifies the date/time value assigned to the |
|
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible FALSE — Control is not |
|
|
Boolean |
Specifies whether a number representing the number TRUE — Week numbers are FALSE — Week numbers are not displayed This property does not work correctly on |
|
|
Integer |
Specifies the width of the control in PowerBuilder |
|
|
Integer |
Specifies the X position (the distance from the |
|
|
Integer |
Specifies the Y position (the distance from the top |
Events
|
DatePicker event |
Occurs |
|---|---|
|
When the control is clicked (selected) with the |
|
|
When the user has selected a date from the |
|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
|
|
When the control is clicked twice with the left |
|
|
When a dragged control is dropped on the |
|
|
When a dragged control enters the |
|
|
When a dragged control leaves the |
|
|
When a dragged control is within the |
|
|
When the user has clicked the drop-down arrow in a |
|
|
Just before the control receives focus (before it |
|
|
When the user presses the F1 key or drags the |
|
|
When the control loses focus (becomes |
|
|
When a Controls message occurs that is not a |
|
|
PreCreateWindow |
This event is reserved for future |
|
When the right mouse button is pressed on the |
|
|
When the user has edited the contents of the |
|
|
When the Value property in a DatePicker control |
Functions
|
DatePicker function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Starts or ends the dragging of the |
|
|
GetCalendar |
Long |
This function is reserved for future |
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
String |
Returns the text displayed in the |
|
|
Date |
Returns the date that the calendar uses as today’s |
|
|
Integer |
Returns the date and time in the Value |
|
|
Integer |
Makes the control invisible |
|
|
Integer |
Moves the control to a specified |
|
|
Integer |
Returns the distance of the pointer from the left |
|
|
Integer |
Returns the distance of the pointer from the top of |
|
|
Boolean |
Adds the specified event to the end of the event |
|
|
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 in the |
|
|
Integer |
Controls automatic redrawing of the control after |
|
|
Integer |
Sets the value that is used by the calendar as |
|
|
Integer |
Sets the date and time in the Value |
|
|
Integer |
Makes the control visible |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control |