GraffitiDateTimePicker

Images #

About #

GraffitiDateTimePicker is an advanced chronological selector that combines both a date picker and time picker in to a single component. It has a wide variety of features including complete color customization, and views for time, month, year, and decade.

Enumerations #

NameValues
DaysOfWeekSunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
SelectionTypesSingle
Multiple
Range
ViewTypesMonth
Year
Decade
Time

Constants #

NameTypeValue
  This class exposes no constants.

Events #

NameParameterReturn TypeDescription
DatePressnewDate as DateTimeNoneThe user pressed on a date.
MonthPresstheMonth as IntegerNoneThe user pressed on a month.
SelectionChangedNoneNoneThe user has selected or deselected dates.
TimeChangeHour as Integer, Minute as IntegerNoneThe user has changed the time values.
YearPresstheYear as IntegerNoneThe user has Pressed a year.

Methods #

DefinitionParametersReturn TypeDescription
DeselectAllNoneNoneDeselects all selected dates.
DeselectDatetheDate as DateTimeNoneDeselects the specified date.
GetSelectedDatesNoneDateTime()Returns an array of the currently selected dates.
NextMonthNoneNoneNavigate to the next month.
NextYearNoneNoneNavigate to the next year.
PreviousMonthNoneNoneNavigate to the previous month.
PreviousYearNoneNoneNavigate to the previous year.
SelectDatetheDate as DateToNoneAdds a date to the selection if multiple selections are possible, otherwise sets the current selection to theDate.
SetTimed as DateTimeNoneSets the displayed time to the specified value.
SetTimeintHour as Integer, intMinute as IntegerNone
ShowDatetheDate as DateTime, theView as ViewTypesNoneSwitches to theView type and brings theDate in to view.

Properties #

NameTypeDefault ValueDescription
ArrowColorColorGroup&c000000Color of the arrows to navigate.
ArrowColorHoverColorGroup&c000000Color of the navigation arrows when hovered.
ArrowColorHoverBGColorGroup&c000000Background color of navigation arrows when hovered.
BGColor as ColorColorGroup&c000000Background color for all views.
BorderSizeInteger5Size of padding around the outside of the views.
CurrentDateBGColorColorGroup&c000000Background color of current date in view.
DaysBoldBooleanFalseDisplay days in bold.
DaysFontNameString“System”Font used to draw days.
DaysFontSizeInteger0Font size for drawing days.
DaysItalicBooleanFalseDisplay days italicized.
DaysTextColorColorGroup&c000000Color of days.
DaysUnderlineBooleanFalseUnderline days.
FirstDayOfWeekDaysOfWeekDaysOfWeek.SundaySets the first day of the calendar week
HeaderBGColorColorGroup&c000000Background color of the view header area.
HeaderBoldBooleanFalseMake header text bold.
HeaderCornerRadiusInteger0Draw rounded corners on header background>
HeaderFontNameString“System”Font name used to draw header text.
HeaderFontSizeInteger0Size of font in header.
HeaderItalicBooleanFalseItalicize header text.
HeaderUnderlineBooleanFalseUnderline header text.
Locale_DaysString“Su;Mo;Tu;We;Th;Fr;Sa”Text to use for days names.
Locale_MonthsString“Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec”Text to use for month names.
LockViewBooleanFalseWhen true, does not allow the user to navigate between views.
MonthTextColorColorGroup&c000000Text color of month names.
SelectedDateBackgroundColorGroup&c000000Background color of currently selected dates.
SelectedDateTextColorGroup&c000000Foreground color of selected dates.
SelectionTypeGraffitiDateTimePicker.SelectionTypesSelectionTypes.SingleSets the selection type, either Single or Range.
ShowNavigationBooleanTrueDraws buttons for navigating from month-to-month, year-to-year, etc.
ShowViewButtonBooleanTrueDraws the button for navigation between calendar views. IE: Decade, Year, Month, Time.
Time24HourBooleanFalseDisplays time in 24-hour instead of 12-hour with AM/PM when true.
TimeHeaderString“”Text to display in the Time view header.
TimeTextSizeInteger24Size of the time text.
UseCustomColorsBooleanFalseOverrides default colors with those from properties.
ViewDateDateTimeTodayThe date that is currently being viewed in the control.
ViewSelectorColorColorGroup&c000000Color to draw the view selector icon.
ViewSelectorHoverBGColorColorGroup&c0000000Color to draw the background of the view selector icon when hovered.
ViewSelectorHoverColorColorGroup&c000000Color to draw the view selector icon when hovered.
ViewTypeViewTypesViewTypes.MonthSets or retrieves the current view type.
WeekdayBoldBooleanFalseSets whether the week day names should be bold.

Examples #

There are currently no examples for this class.