 |
 |
ctlAddAnnuallyBoldedDate |
Adds a day that is displayed in bold on an annual basis in the month calendar. |
 |
| |
|
|
Remarks: Only the day and month of the date are used, the year is ignored. You must call the ctlUpdateBoldedDates method afterward to update the display.
Example:
See Also:
ctlAddBoldedDate | ctlAddMonthlyBoldedDate | ctlAddWeeklyBoldedDate | ctlUpdateBoldedDates
|
|
 |
 |
ctlAddBoldedDate |
Adds a day to be displayed in bold in the month calendar. |
 |
| |
|
|
Remarks: You must call the ctlUpdateBoldedDates method afterward to update the display.
Example:
See Also:
ctlAddAnnuallyBoldedDate | ctlAddMonthlyBoldedDate | ctlAddWeeklyBoldedDate | ctlUpdateBoldedDates
|
|
 |
 |
ctlAddMonthlyBoldedDate |
Adds a day that is displayed in bold on a monthly basis in the month calendar. |
 |
| |
|
|
Remarks: Only the day of the date is used, the month and year are ignored. You must call the UpdateBoldedDates method afterward to update the display.
Example:
See Also:
ctlAddAnnuallyBoldedDate | ctlAddBoldedDate | ctlAddWeeklyBoldedDate | ctlUpdateBoldedDates
|
|
 |
 |
ctlAddWeeklyBoldedDate |
Adds a day that is displayed in bold on an weekly basis in the month calendar. |
 |
| |
|
|
Remarks: Only the day of the week of the date is used. If you want for example all sundays to be bold, just pass any date that falls on sunday. You must call the UpdateBoldedDates method afterward to update the display.
Example:
See Also:
ctlAddAnnuallyBoldedDate | ctlAddBoldedDate | ctlAddMonthlyBoldedDate | ctlUpdateBoldedDates
|
|
 |
 |
ctlAnnuallyBoldedDates |
Gets the array of DateTime objects that determines which annual days are displayed in bold. |
 |
| |
|
|
Value Type: Date
Default Value: .F.
Read/Write: Read only
Remarks:
Array property. Read only. This property is an array of all the dates added using ctlAddAnnuallyBoldedDate.
Example:
See Also:
ctlBoldedDates | ctlMonthlyBoldedDates | ctlWeeklyBoldedDates
|
|
| |
 |
ctlAutoSize |
Gets or sets a value indicating whether the height and/or width of the control is automatically sized. |
 |
| |
|
|
Value Type: Logical
Default Value: TRUE
Read/Write: Yes
Remarks:
If set to TRUE, and depending on the control, the height and/or width will be adjusted to a default value.
Example:
See Also:
ctlDefaultHeight | ctlDefaultWidth
|
|
| |
 |
ctlBackColor |
Gets or sets the background color of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: -1
Read/Write: Yes
Remarks:
Set to -1 to specify the default color, or set to ctlDefaultBackColor, or use the ctlResetBackColor method.
Example:
See Also:
ctlBackStyle | ctlBorderColor | ctlForecolor
|
|
| |
 |
ctlBackgroundImage |
Gets or sets the background image displayed in the control. |
 |
| |
|
|
Value Type: -
Default Value: -
Read/Write: Yes
Remarks:
NOT IMPLEMENTED YET.
Example:
See Also:
ctlBackGroundImageLayout
|
|
| |
 |
ctlBackgroundImageLayout |
Gets or sets the background image layout. |
 |
| |
|
|
Value Type:
Default Value:
Read/Write: Yes
Remarks:
NOT IMPLEMENTED YET.
Example:
See Also:
ctlBackGroundImage
|
|
| |
 |
ctlBackStyle |
Specifies if the background of an object is transparent or opaque. |
 |
| |
|
|
Value Type: Numeric
Default Value: 1
Read/Write: Yes
Remarks:
0: Transparent
1: Opaque
The trasparency only applies the background color of the parent object to the control.
Example:
See Also:
ctlBackColor | ctlBorderColor | ctlForecolor
|
|
 |
 |
ctlBoldedDates |
Gets the array of DateTime objects that determines which nonrecurring dates are displayed in bold. |
 |
| |
|
|
Value Type: Date
Default Value: .F.
Read/Write: Read only
Remarks:
Array property. Read only. This property is an array of all the dates added using ctlAddBoldedDate.
Example:
See Also:
ctlAnnuallyBoldedDates | ctlMonthlyBoldedDates | ctlWeeklyBoldedDates
|
|
| |
 |
ctlBorderColor |
Gets or sets the border color of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: -1
Read/Write: Yes
Remarks:
Set to -1 to specify the default color, or set to ctlDefaultBorderColor, or use the ctlResetBorderColor method.
Example:
See Also:
ctlBackColor | ctlBackStyle | ctlForecolor
|
|
 |
 |
ctlBorderWidth |
Gets or sets the border width of the month calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Yes
Remarks:
Use the BorderWidth property to specify a border width for a control.
Example:
See Also:
ctlBorderColor
|
|
| |
 |
ctlBottom |
Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The value of this property is equal to the sum of the Top property value, and the Height property value.
Example:
See Also:
ctlRight
|
|
 |
 |
ctlCalendarDimensionsHeight |
Gets or sets the number of rows of months displayed. |
 |
| |
|
|
Value Type: Numeric
Default Value: 1
Read/Write: Yes
Remarks:
Only one calendar year is displayed at a time, and the maximum number of months that can be displayed is 12. Valid combinations of columns and rows make a maximum product of 12; for values greater than 12, the display is modified on a best-fit basis.
Example:
See Also:
ctlCalendarDimensionsWidth
|
|
 |
 |
ctlCalendarDimensionsWidth |
Gets or sets the number of columns of months displayed. |
 |
| |
|
|
Value Type: Numeric
Default Value: 1
Read/Write: Yes
Remarks:
Only one calendar year is displayed at a time, and the maximum number of months that can be displayed is 12. Valid combinations of columns and rows make a maximum product of 12; for values greater than 12, the display is modified on a best-fit basis.
Example:
See Also:
ctlCalendarDimensionsHeight
|
|
| |
 |
ctlCanFocus |
Specifies whether the control can receive focus. |
 |
| |
|
|
Value Type: Logical
Default Value: TRUE/FALSE
Read/Write: Yes
Remarks:
The default value depends on the type of control.
Under normal circumstances, NEVER change the value of this property.
Example:
See Also:
ctlEnabled | ctlFocused
|
|
| |
 |
ctlControlSource |
Specifies the source of data to which an object is bound. |
 |
| |
|
|
Value Type: Character
Default Value: NONE
Read/Write: Yes
Remarks:
Once the ControlSource property is set to a field or variable, the ctlValue property always has the same data value as the variable or field to which the ControlSource property is set.
Example:
See Also:
|
|
| |
 |
ctlCreateControl |
Forces the creation of the control, including the creation of the handle and any child controls. |
 |
| |
|
|
Remarks: Under normal circumstances, there is no need to call this method.
Example:
See Also:
ctlCreated
|
|
| |
 |
ctlCreated |
Gets a value indicating whether the control has been created. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Read only
Remarks:
Example:
See Also:
ctlCreateControl
|
|
| |
 |
ctlDefaultBackColor |
Gets the default background color of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The default value depends on the type of control and the operating system version.
Example:
See Also:
ctlDefaultBorderColor | ctlDefaultForeColor
|
|
| |
 |
ctlDefaultBorderColor |
Gets the default border color of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The default value depends on the type of control and the operating system version.
Example:
See Also:
ctlDefaultBackColor | ctlDefaultForeColor
|
|
| |
 |
ctlDefaultForeColor |
Gets the default foreground color of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The default value depends on the type of control and the operating system version.
Example:
See Also:
ctlDefaultBackColor | ctlDefaultBorderColor
|
|
| |
 |
ctlDefaultHeight |
Gets the default height of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The default value depends on the type of control and the operating system version.
Example:
See Also:
ctlAutoSize | ctlDefaultWidth
|
|
 |
 |
ctlDefaultMonthBackColor |
Gets a value indicating the default background color of the month area od the calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
This property returns the same value as ctlDefaultBackColor for this control. The default value depends on the operating system version.
Example:
See Also:
ctlDefaultBackColor | ctlDefaultTitleBackColor | ctlDefaultTitleForeColor | ctlDefaultTrailingForeColor
|
|
 |
 |
ctlDefaultTitleBackColor |
Gets a value indicating the default background color of the title area of the calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The default value depends on the operating system version.
Example:
See Also:
ctlDefaultBackColor | ctlDefaultMonthBackColor | ctlDefaultTitleForeColor | ctlDefaultTrailingForeColor
|
|
 |
 |
ctlDefaultTitleForeColor |
Gets a value indicating the default foreground color of the title area of the calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The default value depends on the operating system version.
Example:
See Also:
ctlDefaultBackColor | ctlDefaultMonthBackColor | ctlDefaultTitleBackColor | ctlDefaultTrailingForeColor
|
|
 |
 |
ctlDefaultTrailingForeColor |
Gets a value indicating the default color of days in months that are not fully displayed in the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The default value depends on the operating system version.
Example:
See Also:
ctlDefaultBackColor | ctlDefaultMonthBackColor | ctlDefaultTitleBackColor | ctlDefaultTitleForeColor
|
|
| |
 |
ctlDefaultWidth |
Gets the default width of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The default value depends on the type of control and the operating system version.
Example:
See Also:
ctlAutoSize | ctlDefaultHeight
|
|
| |
 |
ctlDispose |
Releases all resources used by the control. |
 |
| |
|
|
Remarks: Under normal circumstances, there is no need to call this method, the class itself calls it from Destroy.
Example:
See Also:
|
|
| |
 |
ctlEnabled |
Gets or sets a value indicating whether the control can respond to user interaction. |
 |
| |
|
|
Value Type: Logical
Default Value: TRUE
Read/Write: Yes
Remarks:
With the Enabled property, you can enable or disable controls at run time. For example, you can disable controls that do not apply to the current state of the application. You can also disable a control to restrict its use. For example, a button can be disabled to prevent the user from clicking it. If a control is disabled, it cannot be selected.
Example:
See Also:
ctlCanFocus | ctlFocused
|
|
 |
 |
ctlFirstDayOfWeek |
Gets or sets the first day of the week as displayed in the month calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Yes
Remarks:
This property uses the default values of VFP for days: 1 Sunday, 2 Monday, etc. Set to 0 to use the default (Sunday).
Set this property to the desired value before adding bolded dates.
Example:
See Also:
|
|
| |
 |
ctlFocused |
Gets a value indicating whether the control has input focus. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Read only
Remarks:
Example:
See Also:
ctlCanFocus | ctlEnabled
|
|
| |
 |
ctlFontBold |
Specifies if the text is bold. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Yes
Remarks:
Example:
See Also:
ctlFontCharset | ctlFontItalic | ctlFontName | ctlFontSize | ctlFontStrikethru | ctlFontUnderline
|
|
| |
 |
ctlFontCharset |
Specifies the character set, or language script, of the font. |
 |
| |
|
|
Value Type: Numeric
Default Value: 1
Read/Write: Yes
Remarks:
Example:
See Also:
ctlFontBold | ctlFontItalic | ctlFontName | ctlFontSize | ctlFontStrikethru | ctlFontUnderline
|
|
| |
 |
ctlFontItalic |
Specifies if the text is italic. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Yes
Remarks:
Example:
See Also:
ctlFontBold | ctlFontCharset | ctlFontName | ctlFontSize | ctlFontStrikethru | ctlFontUnderline
|
|
| |
 |
ctlFontName |
Specifies the name of the font used. |
 |
| |
|
|
Value Type: Character
Default Value: "Default"
Read/Write: Yes
Remarks:
Example:
See Also:
ctlFontBold | ctlFontCharset | ctlFontItalic | ctlFontSize | ctlFontStrikethru | ctlFontUnderline
|
|
| |
 |
ctlFontSize |
Specifies the size in points of the font. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Yes
Remarks:
Example:
See Also:
ctlFontBold | ctlFontCharset | ctlFontItalic | ctlFontName | ctlFontStrikethru | ctlFontUnderline
|
|
| |
 |
ctlFontStrikethru |
Specifies if the text is strikethru. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Yes
Remarks:
Example:
See Also:
ctlFontBold | ctlFontCharset | ctlFontItalic | ctlFontName | ctlFontSize | ctlFontUnderline
|
|
| |
 |
ctlFontUnderline |
Specifies if the text is underlined. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Yes
Remarks:
Example:
See Also:
ctlFontBold | ctlFontCharset | ctlFontItalic | ctlFontName | ctlFontSize | ctlFontStrikethru
|
|
| |
 |
ctlForeColor |
Gets or sets the foreground color of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: -1
Read/Write: Yes
Remarks:
Set to -1 to specify the default color, or set to ctlDefaultForeColor, or use the ctlResetForeColor method.
Applies to non themed progress bars.
Example:
See Also:
ctlBackColor | ctlBackStyle | ctlBorderColor
|
|
| |
 |
ctlHandle |
Gets the window handle that the control is bound to. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The value is a Windows HWND.
Example:
See Also:
ctlhWnd | ctlIsHandleCreated
|
|
| |
 |
ctlHide |
Conceals the control from the user. |
 |
| |
|
|
Remarks: Hiding the control is equivalent to setting the ctlVisible property to false. After the ctlHide method is called, the ctlVisible property returns a value of false until the ctlShow method is called.
Example:
See Also:
ctlShow | ctlVisible
|
|
| |
 |
ctlHostFormhWnd |
Gets the window handle of the inner window of the parent form. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The value is a Windows HWND.
Example:
See Also:
ctlHosthWnd
|
|
| |
 |
ctlHosthWnd |
Gets the windows handle of the parent object of this control, if there is one. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The value is a Windows HWND.
Example:
See Also:
ctlHostFormhWnd
|
|
| |
 |
ctlhWnd |
DEPRECATED. Replaced by the .NET equivalent ctlHandle property. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
The value is a Windows HWND.
Example:
See Also:
ctlHandle | ctlIsHandleCreated
|
|
| |
 |
ctlIsHandleCreated |
Gets a value indicating whether the control has a handle associated with it. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Read only
Remarks:
Example:
See Also:
ctlHandle | ctlhWnd
|
|
| |
 |
ctlLocationLeft |
Gets the Left coordinate of the upper-left corner of the control relative to the upper-left corner of its container. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
Example:
See Also:
ctlLocationTop
|
|
| |
 |
ctlLocationTop |
Gets the Top coordinate of the upper-left corner of the control relative to the upper-left corner of its container. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
Example:
See Also:
ctlLocationLeft
|
|
 |
 |
ctlMaxDate |
Gets or sets the maximum allowable date. |
 |
| |
|
|
Value Type: Date
Default Value: {^9998/12/31}
Read/Write: Yes
Remarks:
The default value is the maximum allowable date.
Example:
See Also:
ctlMinDate
|
|
 |
 |
ctlMaxSelectionCount |
Gets or sets the maximum number of days that can be selected in a month calendar control. |
 |
| |
|
|
Value Type: Numeric
Default Value: 1
Read/Write: Yes
Remarks:
The maximum number of days that you can select. The default is 7.
Since there is a BUG where selected days are invisible, this property is not implemented.
ONLY ONE DAY CAN BE SELECTED. NO DATE RANGES ARE ALLOWED.
Example:
See Also:
|
|
 |
 |
ctlMinDate |
Gets or sets the minimum allowable date. |
 |
| |
|
|
Value Type: Date
Default Value: {^1800/01/01}
Read/Write: Yes
Remarks:
The default value should be considered the minimum allowable date.
The real minimum date is {^1753.01.01}, but to prevent problems with the VFP GoMonth function that does not work for dates prior to {^1753.01.01}, the default value is set to {^1800/01/01}.
Example:
See Also:
ctlMaxDate
|
|
 |
 |
ctlMonthlyBoldedDates |
Gets or sets the array of DateTime objects that determine which monthly days to bold. |
 |
| |
|
|
Value Type: Date
Default Value: .F.
Read/Write: Read only
Remarks:
Array property. Read only. This property is an array of all the dates added using ctlAddMonthlyBoldedDate.
Example:
See Also:
ctlAnnuallyBoldedDates | ctlBoldedDates | ctlWeeklyBoldedDates
|
|
| |
 |
ctlOrientation |
Gets or sets a value indicating the horizontal or vertical orientation of the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Yes
Remarks:
0: Horizontal
1: Vertical
Example:
See Also:
|
|
| |
 |
ctlRecreatingHandle |
Gets a value indicating whether the control is currently re-creating its handle. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Read only
Remarks:
Example:
See Also:
|
|
| |
 |
ctlRefresh |
Redraws the control. |
 |
| |
|
|
Remarks: Example:
See Also:
|
|
 |
 |
ctlRemoveAllAnnuallyBoldedDates |
Removes all the annually bold dates. |
 |
| |
|
|
Remarks: This method clears all dates from the ctlAnnuallyBoldedDates array. To remove a single date from the bold dates, use the ctlRemoveAnnuallyBoldedDate method.
You must call the ctlUpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Example:
See Also:
ctlRemoveAllBoldedDates | ctlRemoveAllMonthlyBoldedDates | ctlRemoveAllWeeklyBoldedDates
|
|
 |
 |
ctlRemoveAllBoldedDates |
Removes all the nonrecurring bold dates. |
 |
| |
|
|
Remarks: This method clears the ctlBoldedDates array. To remove a single date from the bold dates, use the ctlRemoveBoldedDate method.
You must call the ctlUpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Example:
See Also:
ctlRemoveAllAnnuallyBoldedDates | ctlRemoveAllMonthlyBoldedDates | ctlRemoveAllWeeklyBoldedDates
|
|
 |
 |
ctlRemoveAllMonthlyBoldedDates |
Removes all the monthly bold dates. |
 |
| |
|
|
Remarks: This method clears the ctlMonthlyBoldedDates array. To remove a single date from the bold dates, use the ctlRemoveMonthlyBoldedDate method.
You must call the ctlUpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Example:
See Also:
ctlRemoveAllAnnuallyBoldedDates | ctlRemoveAllBoldedDates | ctlRemoveAllWeeklyBoldedDates
|
|
 |
 |
ctlRemoveAllWeeklyBoldedDates |
Removes all the weekly bold dates. |
 |
| |
|
|
Remarks: This method clears the WeeklyBoldedDates array. To remove a single date from the bold dates, use the RemoveWeeklyBoldedDate method.
You must call the UpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Example:
See Also:
ctlRemoveAllAnnuallyBoldedDates | ctlRemoveAllBoldedDates | ctlRemoveAllMonthlyBoldedDates
|
|
 |
 |
ctlRemoveAnnuallyBoldedDate |
Removes the specified date from the list of annually bold dates. |
 |
| |
|
|
Remarks: If the specified date occurs more than once in the date list,all the dates are removed. When comparing dates, only the day and month are used. You must call the ctlUpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Example:
See Also:
ctlRemoveBoldedDate | ctlRemoveMonthlyBoldedDate | ctlRemoveWeeklyBoldedDate
|
|
 |
 |
ctlRemoveBoldedDate |
Removes the specified date from the list of nonrecurring bold dates. |
 |
| |
|
|
Remarks: If the specified date occurs more than once in the date list,all the dates are removed. You must call the ctlUpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Example:
See Also:
ctlRemoveAnnuallyBoldedDate | ctlRemoveMonthlyBoldedDate | ctlRemoveWeeklyBoldedDate
|
|
 |
 |
ctlRemoveMonthlyBoldedDate |
Removes the specified date from the list of monthly bolded dates. |
 |
| |
|
|
Remarks: If the specified date occurs more than once in the date list,all the dates are removed. When comparing dates, only the day is used. You must call the ctlUpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Example:
See Also:
ctlRemoveAnnuallyBoldedDate | ctlRemoveBoldedDate | ctlRemoveWeeklyBoldedDate
|
|
 |
 |
ctlRemoveWeeklyBoldedDate |
Removes the specified date from the list of weekly bolded dates. |
 |
| |
|
|
Remarks: If the specified date occurs more than once in the date list,all the dates are removed. When comparing dates, only the day of the week of the date is used. You must call the ctlUpdateBoldedDates method to ensure that the display is updated to reflect the removal.
Example:
See Also:
ctlRemoveAnnuallyBoldedDate | ctlRemoveBoldedDate | ctlRemoveMonthlyBoldedDate
|
|
| |
 |
ctlResetBackColor |
Resets the ctlBackColor property to its default value. |
 |
| |
|
|
Remarks: The default value applied depends on the type of control and operating system version.
Example:
See Also:
ctlResetBorderColor | ctlResetFont | ctlResetForeColor
|
|
| |
 |
ctlResetBorderColor |
Resets the ctlBorderColor property to its default value. |
 |
| |
|
|
Remarks: The default value applied depends on the type of control and operating system version.
Example:
See Also:
ctlResetBackColor | ctlResetFont | ctlResetForeColor
|
|
| |
 |
ctlResetFont |
Resets all the ctlFont... properties to its default values. |
 |
| |
|
|
Remarks: The default values applied depend on the type of control and operating system version.
Example:
See Also:
ctlResetBackColor | ctlResetBorderColor | ctlResetForeColor
|
|
| |
 |
ctlResetForeColor |
Resets the ctlForeColor property to its default value. |
 |
| |
|
|
Remarks: The default value applied depends on the type of control and operating system version.
Example:
See Also:
ctlResetBackColor | ctlResetBorderColor | ctlResetFont
|
|
| |
 |
ctlRight |
Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area. |
 |
| |
|
|
Value Type:
Default Value:
Read/Write:
Remarks:
The value of this property is equal to the sum of the Left property value, and the Width property value.
Example:
See Also:
ctlBottom
|
|
 |
 |
ctlScrollChange |
Gets or sets the scroll rate for a month calendar control. |
 |
| |
|
|
Value Type: Numeric
Default Value: Months displayed
Read/Write: Yes
Remarks:
A positive number representing the current scroll rate in number of months moved. The default is the number of months currently displayed. The maximum is 20,000.
Example:
See Also:
|
|
 |
 |
ctlSelectionEnd |
Gets or sets the end date of the selected range of dates. |
 |
| |
|
|
Value Type: Date
Default Value: ctlValue
Read/Write: Read only
Remarks:
Selecting a range of dates is not implemented. This property always returns the value of the ctlValue property.
Example:
See Also:
ctlSelectionStart
|
|
 |
 |
ctlSelectionStart |
Gets or sets the start date of the selected range of dates. |
 |
| |
|
|
Value Type: Date
Default Value: ctlValue
Read/Write: Read only
Remarks:
Selecting a range of dates is not implemented. This property always returns the value of the ctlValue property.
Example:
See Also:
ctlSelectionEnd
|
|
| |
 |
ctlShow |
Displays the control to the user. Showing the control is equivalent to setting the ctlVisible property to TRUE. |
 |
| |
|
|
Remarks: Example:
See Also:
ctlHide | ctlVisible
|
|
| |
 |
ctlShowFocusCues |
Gets or sets a value indicating whether the control should display focus rectangles. |
 |
| |
|
|
Value Type: Logical
Default Value: TRUE
Read/Write: Yes
Remarks:
Example:
See Also:
|
|
 |
 |
ctlShowToday |
Gets or sets a value indicating whether the date represented by the TodayDate property is displayed at the bottom of the control. |
 |
| |
|
|
Value Type: Logical
Default Value: TRUE
Read/Write: Yes
Remarks:
The date is displayed in the format specified by the system settings for the short date format.
Example:
See Also:
|
|
 |
 |
ctlShowTodayCircle |
Gets or sets a value indicating whether today's date is identified with a circle or a square. |
 |
| |
|
|
Value Type: Logical
Default Value: TRUE
Read/Write: Yes
Remarks:
If ShowTodayCircle is true, and visual styles are enabled and supported on the computer running the application, today's date will be enclosed in a square, otherwise today's date will be circled.
Example:
See Also:
|
|
 |
 |
ctlShowWeekNumbers |
Gets or sets a value indicating whether the month calendar control displays week numbers (1-52) to the left of each row of days. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Yes
Remarks:
Week numbers are displayed to the left of the week, and start from the first week of the calendar year. The first week of the year must contain at least four days.
Example:
See Also:
|
|
 |
 |
ctlSingleMonthHeight |
Gets the minimum height to display one month of the calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
Represents the minimum height required to display one month in the control. The minimum required window size for a month calendar control depends on the currently selected font and operating system.
Example:
See Also:
ctlSingleMonthWidth
|
|
 |
 |
ctlSingleMonthWidth |
Gets the minimum width to display one month of the calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: 0
Read/Write: Read only
Remarks:
Represents the minimum width required to display one month in the control. The minimum required window size for a month calendar control depends on the currently selected font and operating system.
Example:
See Also:
|
|
| |
 |
ctlThemes |
Specifies if themes are used for the control. |
 |
| |
|
|
Value Type: Logical
Default Value: TRUE
Read/Write: Yes
Remarks:
The Themes property for visual classes can affect your existing user interface when using Microsoft Windows XP. You can turn this support off by setting the Themes property at the control, form, or _SCREEN system variable level.
Example:
See Also:
|
|
 |
 |
ctlTitleBackColor |
Gets or sets a value indicating the background color of the title area of the calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: -1
Read/Write: Yes
Remarks:
The font color of the days-of-the-week text depends on the ctlTitleBackColor property. Setting the ctlTitleBackColor equal to the ctlBackColor for the main display area of the calendar causes the days-of-the-week text to become unreadable.
Changing the ctlTitleBackColor property may not affect the appearance of the MonthCalendar control, depending on the operating system and theme of the computer running the application. For example, changing the ctlTitleBackColor property of the MonthCalendar control on Windows Vista with the Windows Aero theme does not affect the control appearance.
Example:
See Also:
|
|
 |
 |
ctlTitleForeColor |
Gets or sets a value indicating the foreground color of the title area of the calendar. |
 |
| |
|
|
Value Type: Numeric
Default Value: -1
Read/Write: Yes
Remarks:
Changing the ctlTitleForeColor property may not affect the appearance of the MonthCalendar control, depending on the operating system and theme of the computer running the application. For example, changing the ctlTitleForeColor property of the MonthCalendar control on Windows Vista with themes enabled does not affect the control appearance.
Example:
See Also:
|
|
 |
 |
ctlTodayDate |
Gets or sets the value that is used by MonthCalendar as today's date. |
 |
| |
|
|
Value Type: Date
Default Value: Date()
Read/Write: Yes
Remarks:
By default, the ctlTodayDate property returns the current system date, and the ctlTodayDateSet property is false. Setting the ctlTodayDate property sets the ctlTodayDateSet property to true and, from that point, the value returned by the ctlTodayDate property is the one the user sets.
Set to an empty date to reset ctlTodayDate to the default value and set ctlTodayDateSet to false.
Example:
See Also:
ctlTodayDaySet
|
|
 |
 |
ctlTodayDateSet |
Gets a value indicating whether the ctlTodayDate property has been explicitly set. |
 |
| |
|
|
Value Type: Logical
Default Value: FALSE
Read/Write: Read only
Remarks:
This property is true if the value for the ctlTodayDate property has been explicitly set; otherwise, false. The default is false.
Example:
See Also:
ctlTodayDate | ctlTodayDaySet
|
|
 |
 |
ctlTrailingForeColor |
Gets or sets a value indicating the color of days in months that are not fully displayed in the control. |
 |
| |
|
|
Value Type: Numeric
Default Value: -1
Read/Write: Yes
Remarks:
When the calendar is displayed, some dates precede and some follow the months that are fully displayed. Using the ctlTrailingForeColor property, you can modify the color of the text for those dates.
Changing the ctlTrailingForeColor property may not affect the appearance of the MonthCalendar control, depending on the operating system and theme of the computer running the application. For example, changing the ctlTrailingForeColor property of the MonthCalendar control on Windows Vista with the Windows Aero theme does not affect the control appearance.
Example:
See Also:
|
|
 |
 |
ctlUpdateBoldedDates |
Repaints the bold dates to reflect the dates set in the lists of bold dates. |
 |
| |
|
|
Remarks: Use the ctlUpdateBoldedDates method to reflect changes made to ctlAnnuallyBoldedDates, ctlMonthlyBoldedDates, ctlWeeklyBoldedDates, or ctlBoldedDates properties, by using the add or remove methods provided to modify the date lists.
Example:
See Also:
ctlAddAnnuallyBoldedDate | ctlAddBoldedDate | ctlAddMonthlyBoldedDate | ctlAddWeeklyBoldedDate
|
|
| |
 |
ctlValue |
Gets or sets the current value or state of the control. |
 |
| |
|
|
Value Type: Numeric/Date/DateTime
Default Value: 0
Read/Write: Yes
Remarks:
The type of this property depends on the control type.
Example:
See Also:
|
|
| |
 |
ctlValueChanged |
Occurs when the ctlValue property changes. |
 |
| |
|
|
Remarks: Example:
See Also:
|
|
| |
 |
ctlVisible |
Gets or sets a value indicating whether the control is displayed. |
 |
| |
|
|
Value Type: Logical
Default Value: TRUE
Read/Write: Yes
Remarks:
Example:
See Also:
ctlHide | ctlShow
|
|
 |
 |
ctlWeeklyBoldedDates |
Gets the array of DateTime objects that determines which weekly days are displayed in bold. |
 |
| |
|
|
Value Type: Date
Default Value: .F.
Read/Write: Read only
Remarks:
Array property. Read only. This property is an array of all the dates added using ctlAddWeeklyBoldedDate.
Example:
See Also:
ctlAnnuallyBoldedDates | ctlBoldedDates | ctlMonthlyBoldedDates
|
|