Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Images on CalendarView.DayRange view (Read 7175 times)
trash2all
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 17th, 2007
Images on CalendarView.DayRange view
Aug 18th, 2008 at 1:49pm
Print Post  
Is images available on this kind of view?
how do i do it?
thanks in advance...
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Images on CalendarView.DayRange view
Reply #1 - Aug 18th, 2008 at 3:26pm
Print Post  
You can associate an image with a particular day (or a range of days) in the List (previously the DayRange) view by using custom date styles. The following code illustrates how to associate an image with Jan 1st 2000:

Code
Select All
DateStyle s = new DateStyle();
s.From = new DateTime(2000, 1, 1);
s.To = new DateTime(2000, 1, 1);
s.Style.Image = myExistingImage;
myCalendar.DayStyles.Add(s); 


If you want to associate the image with an item, you can use the Style of the item:

Code
Select All
myItem.Style.Image = myExistingImage 


For more specialized ways for displaying an image, you can use custom drawing. The AdvancedItemDrawing sample illustrates some techniques for custom drawing items. This sample might not be included in older installations, so it is advisable to do download the latest Planner.NET trial version from our site.

Meppy
  
Back to top
 
IP Logged
 
trash2all
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 17th, 2007
Re: Images on CalendarView.DayRange view
Reply #2 - Aug 21st, 2008 at 8:23am
Print Post  
sorry, but i was not cleared in my question:

i want to insert icon for an appointment on
the dayrange view.
is it possible?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Images on CalendarView.DayRange view
Reply #3 - Aug 21st, 2008 at 10:44am
Print Post  
If you want to associate an image with an appointment, assign the image to the Image property of the appointment's style:

Code
Select All
myItem.Style.Image = myExistingImage; 


I hope this helps.

Meppy
  
Back to top
 
IP Logged
 
trash2all
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 17th, 2007
Re: Images on CalendarView.DayRange view
Reply #4 - Aug 21st, 2008 at 10:47am
Print Post  
and this will show the image on the DayRange view?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Images on CalendarView.DayRange view
Reply #5 - Aug 21st, 2008 at 1:50pm
Print Post  
It should display the image within the appointment 'myItem' in any view.

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