Difference between revisions of "CalendarView.DisplayDate"
From Jeremie Leroy - XOJO Controls Wiki
m (1 revision) |
m (1 revision) |
||
Line 14: | Line 14: | ||
==Notes== | ==Notes== | ||
If you assign a date using | If you assign a date using | ||
− | < | + | <rbcode> |
me.DisplayDate = aDate | me.DisplayDate = aDate | ||
− | </ | + | </rbcode> |
There is no need to refresh the CalendarView to show the selected date. | There is no need to refresh the CalendarView to show the selected date. | ||
However if you alter DisplayDate without assigning it a value, the CalendarView needs to be refreshed: | However if you alter DisplayDate without assigning it a value, the CalendarView needs to be refreshed: | ||
− | < | + | <rbcode> |
//Change the month to December | //Change the month to December | ||
me.DisplayDate.Month = 12 | me.DisplayDate.Month = 12 | ||
me.Redisplay() //This refreshes the CalendarView | me.Redisplay() //This refreshes the CalendarView | ||
− | </ | + | </rbcode> |
Revision as of 16:32, 2 May 2012
Property (As Date)
The currently displayed Date. Change the DisplayDate to change the current view.
Notes
If you assign a date using <rbcode> me.DisplayDate = aDate </rbcode> There is no need to refresh the CalendarView to show the selected date. However if you alter DisplayDate without assigning it a value, the CalendarView needs to be refreshed: <rbcode> //Change the month to December me.DisplayDate.Month = 12 me.Redisplay() //This refreshes the CalendarView </rbcode>