Difference between revisions of "CalendarView.DisplayDate"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
m (1 revision)
m (100 revisions imported)
 
(58 intermediate revisions by 2 users not shown)
Line 11: Line 11:
  
 
The currently displayed Date.
 
The currently displayed Date.
Change the DisplayDate to change the current view.
+
Change the [[CalendarView.DisplayDate|DisplayDate]] to change the current view.
 
==Notes==
 
==Notes==
 
If you assign a date using
 
If you assign a date using
<rbcode>
+
<source lang="realbasic">
 
me.DisplayDate = aDate
 
me.DisplayDate = aDate
</rbcode>
+
</source>
 
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
 
me.DisplayDate.Month = 12
 
me.Redisplay() //This refreshes the CalendarView
 
</rbcode>
 

Latest revision as of 13:20, 6 August 2015

Property (As Date)
aCalendarView.DisplayDate = newValue
or
DateValue = aCalendarView.DisplayDate


The currently displayed Date. Change the DisplayDate to change the current view.

Notes

If you assign a date using

me.DisplayDate = aDate

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: