Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Time Line (Read 4970 times)
Aliza
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Jul 4th, 2007
Time Line
Jul 4th, 2007 at 5:59am
Print Post  
Hi,
Does the calendar have a "Time Line" feature - a line which shows the current time on the calendar?(like in the Microsoft Outlook calendar)

Thaks in advance,
Aliza
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Time Line
Reply #1 - Jul 4th, 2007 at 7:04am
Print Post  
Hi,

The Timetable view can display the current time. To do so, set the Calendar.CurrentView to CalendarView.Timetable and Calendar.TimetableSettings.ShowCurrentTime to State.Enabled.

Meppy
  
Back to top
 
IP Logged
 
Aliza
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Jul 4th, 2007
Re: Time Line
Reply #2 - Jul 4th, 2007 at 7:14am
Print Post  
Thanks for your response.
The problem is that I am using ResourceView. Is there something of the sort for ResourceView?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Time Line
Reply #3 - Jul 4th, 2007 at 11:40am
Print Post  
The Resource view does not have such a feature. It can only be achieved through custom drawing. The following code draws a red rectangle around the cell in the timeline, which corresponds to the current day:

Code
Select All
...
calendar.CustomDraw = CustomDrawElements.ResourceViewTimelineCell;
calendar.Draw += new CustomDraw(OnDraw);
...
private void OnDraw(object sender, CustomDrawArgs e)
{
    if (e.Element == CustomDrawElements.ResourceViewTimelineCell)
    {
	  if (e.Date == DateTime.Today)
	  {
		e.Graphics.DrawRectangle(Pens.Red, e.Bounds);
	  }
    }
} 


You can of course perform more sophisticated drawing, similar to the one available in the Timetable view.

Meppy
  
Back to top
 
IP Logged
 
Aliza
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Jul 4th, 2007
Re: Time Line
Reply #4 - Jul 4th, 2007 at 1:05pm
Print Post  
Thanks.
Your support is great!
Unfortunately, The sample code you gave still does not meet my needs. My calendar is displayed in resolution of minutes. I need a time line which will show the actual hour & minute in the day and not only the day itself.
Is it possible you implement this for your next release?

Thanks,
Aliza
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Time Line
Reply #5 - Jul 4th, 2007 at 1:22pm
Print Post  
We will add this feature in the next release. I will upload a preview version here as soon as it is ready.

Meppy
  
Back to top
 
IP Logged
 
Aliza
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Jul 4th, 2007
Re: Time Line
Reply #6 - Jul 5th, 2007 at 4:16am
Print Post  
Thank You!
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Time Line
Reply #7 - Jul 5th, 2007 at 7:43am
Print Post  
Here is a new preliminary version of Planner.NET:

https://mindfusion.org/_planner/_Planner.NET_422pre_trial.zip

There are 3 new properties now in the TimelineSettings class - ShowCurrentTime, NowColor and NowFillColor. These properties enable you to display the current time in a resource view for each individual timeline. You can access them through the TopTimelineSettings, MiddleTimelineSettings and BottomTimelineSettings properties of the ResourceViewSettings class.

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