piDog_CalendarControl
Protected Class piDog_CalendarControl
Inherits Canvas
Constants
kLanguage_English
Use to set Language to English
kLanguage_French
Use to set Language to French
kLanguage_German
Use to set Language to German
kLanguage_Italian
Use to set Language to Italian
kLanguage_Spanish
Use to set Language to Spanish
Style_Bar
Constant for the bar nav style
Style_Button
Constant for the button nav style
Style_DisplayOnly
Constant for the DisplayOnly mode
Events
CellBackGroundPaint
Allows you to override default cell Background drawing for a given date
CellTextPaint
Allows you to override default text painting for a given date
Changed
The user has changed the selected date
ChangedMultiple
The user has changed the selected dates
ConstructContextualMenuForDate
The user has right-clicked on a date
ContextualMenuAction
The user has selected an item from a contextual menu
DisplayChanged
The user has navigated to display a different month or year
DoubleClickDate
The user double-clicked a date
GetCellHelpTag
Return the text that should be displayed as a help tag for the given date
MouseDown
The user has pressed the mouse button
MouseDrag
The user is dragging the mouse
MouseMove
The mouse was moved at the given coordinates
MouseOver
The mouse was moved into a date
Open
The control is about to open
ViewChanged
Called when the user navigates to a different year or month
Methods
doMonthDown
navigate to next month
doMonthUp
navigate to previous month
doYearDown
navigate to next Year
doYearUp
navigate to previous year
SelectedDates
returns an array of dates that are currently selected.
Assigns a range of dates as being the selection.
SetLanguage
Sets the language used to render the calendar
Properties
AnimateMonthChanges
Whether the change from month to month will be animated.
CalendarAutoTextSize
Whether the control will resize the text to fit the current control size
CalendarBackgroundColor
The fill color used to paint the calendar area
CalendarTextColor
The text color used to draw the dates
CornerRadius
Radius to use in rounding corners of calendar
CurrentLanguage
The language currently being used to show the calendars
DayLabels
An array of strings to use for displaying the day labels
DisplayMonth
The currently visible Month
DisplayYear
The currently visible year
DrawGridLines
Whether or not the control should render divider lines between the dates.
Duration
The length of the selected date range
GridLineColor
The color to render the divider lines if DrawGridLines is true
GridLineWidth
Size of the divider lines between dates
HeaderAutoTextSize
Whether or not the header should automatically be resized to fit the available space
HeaderBackgroundColor
The color used to fill the area around the navigation controls
InitialDate
The date to be used as a default value. "today", "tomorrow", "y
InitialDisplayMonth
The view month to defalt to.
InitialDisplayYear
The view year to default to
InitialDuration
The duration of the initial selection in days
Mode
Sets the display mode of the control.
Monthlabels
An array of month names.
NavAutoTextSize
Whether Navigation Text should be automatically resized.
NavBackgroundColor
The color used to fill the area behind the navigation controls
NavButtonBackgroundColor
The fill color for the navigation controls
NavStyle
May be Style_Button or Style_Bar or Style_DisplayOnly
NavTextSize
Size of the text for the Navigation controls
NavTitleBackgroundColor
Fill color for month and year text
NavTitleTextColor
text color for month and year text
OutOfMonthBGColor
Background color for "Wrap around" dates not in the current month
OutOfMonthTextColor
Text color for "Wrap around" dates not in the current month
SelectedDate
The currently selected Date
SelectionBackgroundColor
Fill color for the Selected date.
SelectionTextColor
Text color for the selected date
ShowWrappingDays
Whether days not in the current month, but visible in the grid should be shown.
TextFont
Font used to render the calender
TextSize
Text size used to render the calendar.
UsesContextualMenus
Whether the calendar should raise events for contextual menus
Shared Methods