Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Fill Item Interior - ResourceView (Read 3941 times)
stefan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Aug 25th, 2008
Fill Item Interior - ResourceView
Aug 25th, 2008 at 9:19am
Print Post  
Hi, I try to fill the interior of Item (appointment) by specified color. I want to get red color on background of header text in Claendar.CurrentView. I try to do it:

Style _style1 = new Style();

           _style1.LineColor = Color.FromArgb(66, 166, 59);
           _style1.BorderTopColor = Color.FromArgb(66, 166, 59);
           _style1.BorderLeftColor = Color.FromArgb(66, 166, 59);
           _style1.BorderBottomColor = Color.FromArgb(66, 166, 59);
           _style1.BorderRightColor = Color.FromArgb(66, 166, 59);
           _style1.Brush = new MindFusion.Drawing.SolidBrush(Color.Red);
           _style1.HeaderTextColor = Color.FromArgb(9, 126, 0);

Item item = new Appointment();
...
calendar.Schedule.Items.Add(item);
item.Style = _style1;
calendar.Invalidate();

and the interior of Item is white

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Fill Item Interior - ResourceView
Reply #1 - Aug 25th, 2008 at 11:07am
Print Post  
In all views except the Resource view, the items' background is specified via the Brush property of the corresponding style. In the Resource view, you have to use the HeaderBrush property of the style. If your code is not working, I presume you are using the Resource view.

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