Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic scroll timetable to specific hour (Read 1454 times)
danirodes
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Oct 20th, 2009
scroll timetable to specific hour
Oct 20th, 2009 at 8:44pm
Print Post  
How can I scroll to a specific hor when I change the currentview to timetable?
And how to display hours from 00 to 23?

thanks in advance
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: scroll timetable to specific hour
Reply #1 - Oct 21st, 2009 at 6:20am
Print Post  
Quote:
How can I scroll to a specific hor when I change the currentview to timetable?

You can do that by setting the scroll position directly (through the Calendar.VScrollPos property) or by invoking the Calendar.EnsureVisible method and passing as argument the date and time to be scrolled to. For example:

Code
Select All
calendar.VScrollPos = 10;
-- or --
calendar.EnsureVisible(new DateTime(2009, 10, 21, 10, 0, 0)); 


Quote:
And how to display hours from 00 to 23?

The Calendar.TimetableSettings.EndTime property specifies the last displayed time in the Timetable view, expressed in minutes relative to the start of the displayed day. For example, in order to display the interval 00:00 - 23:00, set this property to 1380.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint