MonthCalendar control
A MonthCalendar control provides a calendar-like user interface that
makes it easy for users to enter or select dates.
Properties
|
MonthCalendar property |
Datatype |
Description |
|---|---|---|
|
Integer |
Specifies the ASCII value of the key you want to |
|
|
String |
A description of the control and/or its purpose for |
|
|
String |
A label that briefly describes the control, such as |
|
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the |
|
|
Boolean |
Specifies whether the calendar is sized TRUE — The calendar sizes to hold a single FALSE — The calendar does not size |
|
|
Long |
Specifies the numeric value of the background color |
|
|
Boolean |
Specifies whether the control has a border. Values TRUE — Control has a border. FALSE |
|
|
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 |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
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 control is enabled (can be TRUE — Control can be FALSE — Control cannot be |
|
|
String |
Specifies the name of the typeface in which the This property does not work on the Windows |
|
|
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 height of the control, in |
|
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not This property does not work on the Windows |
|
|
Integer |
Specifies the maximum number of days the user can |
|
|
Long |
Specifies the numeric value of the background color This property does not work |
|
|
String |
Specifies the name of the stock pointer or the file |
|
|
Boolean |
Specifies that characters should be displayed in |
|
|
Integer |
Specifies the number of months the calendar scrolls |
|
|
Integer |
Specifies the tab value of the control within the |
|
|
String |
Specifies the tag value assigned to the |
|
|
Long |
Specifies the numeric value of the color used for This property does not work |
|
|
Integer |
Specifies the size of the text in the control, in This property does not work on the Windows |
|
|
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 |
|
|
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 |
|
|
Long |
Specifies the numeric value of the color used for This property does not work |
|
|
Boolean |
Specifies whether text is This property does not work in |
|
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible. FALSE |
|
|
Boolean |
Specifies whether a number representing the number TRUE — Week numbers are FALSE — Week numbers are not displayed |
|
|
Integer |
This property is not relevant in MonthCalendar |
|
|
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
|
MonthCalendar event |
Occurs |
|---|---|
|
When the control is clicked (selected) with the |
|
|
Immediately before the Open event occurs in the |
|
|
Immediately after a date is selected |
|
|
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 |
|
|
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 |
|
|
When the right mouse button is pressed on the |
Functions
|
MonthCalendar function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Clears bold format of dates in |
|
|
Integer |
Starts or ends the dragging of the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
Integer |
Retrieves the maximum and minimum date limits |
|
|
Integer |
Retrieves the date range of displayed months and |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Integer |
Retrieves the selected date |
|
|
Integer |
Retrieves the range of selected |
|
|
Date |
Returns the date that the calendar uses as today’s |
|
|
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 |
Displays the specified date in bold |
|
|
Integer |
Sets the maximum and minimum date limits for the |
|
|
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 |
Selects a specified date |
|
|
Integer |
Sets the range of selected dates |
|
|
Integer |
Sets the value that is used by the calendar as |
|
|
Integer |
Makes the control visible |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control |