piDog_CalendarControl
Super
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
kSystemLanguage
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(g as graphics, d As Date) as Boolean
Allows you to override default cell Background drawing for a given date
CellTextPaint(g as graphics, d As Date) as Boolean
Allows you to override default text painting for a given date
Changed(TheDate As Date,EndDate As date)
The user has changed the selected date
ChangedMultiple(TheDates() As date)
The user has changed the selected dates
ConstructContextualMenuForDate(Base As MenuItem, theDate As date) as Boolean
The user has right-clicked on a date
ContextualMenuAction(HitItem As MenuItem) as Boolean
The user has selected an item from a contextual menu
DisplayChanged(month as integer, year as integer)
The user has navigated to display a different month or year
DoubleClickDate(theDate As Date) as Boolean
The user double-clicked a date
GetCellHelpTag(d as date) as String
Return the text that should be displayed as a help tag for the given date
MouseDown(x as integer, y as integer, d as date) as Boolean
The user has pressed the mouse button
MouseDrag(x As integer, y as integer)
The user is dragging the mouse
MouseMove(x as integer, y as integer)
The mouse was moved at the given coordinates
MouseOver(TheDate As date)
The mouse was moved into a date
MouseUp(x as integer, y as integer)
Open
The control is about to open
ViewChanged(VisibleMonth As integer,VisibleYear As integer)
Called when the user navigates to a different year or month
Methods
Function SelectedDates() As date()
returns an array of dates that are currently selected.
Sub SelectedDates(assigns dates() As Date)
Assigns a range of dates as being the selection.
Sub SetLanguage(language As Integer)
Sets the language used to render the calendar
Properties
AnimateMonthChanges As Boolean
Whether the change from month to month will be animated.
CalendarAutoTextSize As Boolean
Whether the control will resize the text to fit the current control size
CalendarBackgroundColor As color
The fill color used to paint the calendar area
CalendarTextColor As color
The text color used to draw the dates
CurrentLanguage As Integer
The language currently being used to show the calendars
DayLabels() As string
An array of strings to use for displaying the day labels
DisplayMonth As Integer
The currently visible Month
DisplayYear As Integer
The currently visible year
DrawGridLines As Boolean
Whether or not the control should render divider lines between the dates.
Duration As Integer
The length of the selected date range
GridLineColor As Color
The color to render the divider lines if DrawGridLines is true
GridLineWidth As Integer
Size of the divider lines between dates
HeaderAutoTextSize As Boolean
Whether or not the header should automatically be resized to fit the available space
HeaderBackgroundColor As color
The color used to fill the area around the navigation controls
HeaderTextColor As Color
HeaderTextSize As Integer
InitialDate As string
The date to be used as a default value. "today", "tomorrow", "yesterday" or any regular date format (ie 3/17/2015)
InitialDisplayMonth As Integer
The view month to defalt to.
InitialDisplayYear As Integer
The view year to default to
InitialDuration As Integer
The duration of the initial selection in days
Mode As Integer
Sets the display mode of the control.
Monthlabels() As string
An array of month names.
NavAutoTextSize As Boolean
Whether Navigation Text should be automatically resized.
NavBackgroundColor As Color
The color used to fill the area behind the navigation controls
NavButtonBackgroundColor As Color
The fill color for the navigation controls
NavButtonTextColor As color
Text color for the navigation controls
NavStyle As Integer
May be Style_Button or Style_Bar or Style_DisplayOnly
NavTextSize As Integer
Size of the text for the Navigation controls
NavTitleBackgroundColor As color
Fill color for month and year text
NavTitleTextColor As Color
text color for month and year text
OutOfMonthBGColor As Color
Background color for "Wrap around" dates not in the current month
OutOfMonthTextColor As color
Text color for "Wrap around" dates not in the current month
SelectedDate As Date
The currently selected Date
SelectionBackgroundColor As Color
Fill color for the Selected date.
SelectionTextColor As color
Text color for the selected date
ShowWrappingDays As Boolean
Whether days not in the current month, but visible in the grid should be shown.
StartOfWeek As Integer
TextFont As String
Font used to render the calender
TextSize As Integer
Text size used to render the calendar.
UsesContextualMenus As Boolean
Whether the calendar should raise events for contextual menus
Shared Methods