Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Image in a Appointment (Read 4307 times)
Jerome Mace
YaBB Newbies
*
Offline



Posts: 5
Joined: Jun 22nd, 2006
Image in a Appointment
Jul 6th, 2006 at 8:29am
Print Post  
How can I view an icon in an appointement. The following code doesn't run ???

Calendar1.ImageList = XXXX
...
Dim oAppointmentAs New Appointment
oAppointment.StartTime = ...
oAppointment.EndTime =...
oAppointment.ImageIndex = 1
...
Calendar1.Schedule.Items.Add(oAppointment)
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Image in a Appointment
Reply #1 - Jul 6th, 2006 at 9:22am
Print Post  
Images are currently only drawn for items in the timetable view. To associate an image with an item, use either Item.Style.Image or Item.Style.ImageIndex with ImageList associated with the Calendar control.

Code
Select All
item.Style.Image = image; 


or

Code
Select All
item.Style.ImageIndex = 1;
calendar.ImageList = imageList; 



Item.ImageIndex is deprecated because the item appearance should depend solely on its style. We appologize we forgot to mark this out throughout the documentation.

Meppy
  
Back to top
 
IP Logged
 
Jerome Mace
YaBB Newbies
*
Offline



Posts: 5
Joined: Jun 22nd, 2006
Re: Image in a Appointment
Reply #2 - Jul 7th, 2006 at 4:57am
Print Post  
Thanks for your code, but which format of image did I use for transparency.
I try with ICO (result = Black background) or GIF (result = White background).


  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Image in a Appointment
Reply #3 - Jul 7th, 2006 at 7:01am
Print Post  
You are correct, the .NET Compact Framework seems to discard transparency in images. We will add a property which would enable you to specify your own colors as transparent (so called color keys) in the next release.

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