Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Themes-ListViewSettings-WeeksBrush (Read 2727 times)
m.anzi
YaBB Newbies
*
Offline


try harder

Posts: 5
Joined: Jan 15th, 2010
Themes-ListViewSettings-WeeksBrush
Jan 19th, 2010 at 3:55pm
Print Post  
Hello Meppy,

i'm using DayOfWeekStyles/DayStyles and have now the problem, that these seetings only occcur on every second week in listview. i figured out the properties oddweeksbrush/evenweeksbrush in Windows2003 theme. They seem to have a higher priority in drawing the view (by using Vista Theme the problem not occur).

Setting a high priority for the DayofWeekStyle or setting the oddweeksbrush/evenweeksbrush properties to null by loading has no effect (as described, theme defaults will be used)...

Is there an workaround apart from creating a custom theme ?

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Themes-ListViewSettings-WeeksBrush
Reply #1 - Jan 19th, 2010 at 4:30pm
Print Post  
Hey,

This appears to be a bug. Indeed OddWeeksBrush/EvenWeeksBrush properties override (when non-null) the values supplied through DateStyle objects. I will look into this problem. Until there is a fix however, you can use custom drawing (instead of DateStyle objects) to achieve the desired results. For example, to custom draw the background of the cell corresponding to 25th Jan, 2010, set Calendar.CustomDraw to CellContents, handle the Calendar.Draw event and use the following code in the event handler:

Code
Select All
if (e.Element == CustomDrawElements.CellContents)
{
      if (e.Date == new DateTime(2010, 1, 25))
            e.Graphics.FillRectangle(Brushes.Red, e.Bounds);
} 


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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Themes-ListViewSettings-WeeksBrush
Reply #2 - Jan 21st, 2010 at 8:46am
Print Post  
You can download a new version of MindFusion.Scheduling from here:

https://mindfusion.eu/_pln_trial/MindFusion.Scheduling5.0g.zip

Can you please try with it and see if the above problem has been resolved?

Regards,
Meppy
  
Back to top
 
IP Logged
 
m.anzi
YaBB Newbies
*
Offline


try harder

Posts: 5
Joined: Jan 15th, 2010
Re: Themes-ListViewSettings-WeeksBrush
Reply #3 - Jan 22nd, 2010 at 3:21pm
Print Post  
Hi Meppy,

i tried the new version and the problem seems to be fixed. But .... i figured out another one ... In this version you can't define the brush properties for style of DayofWeek entries in the property dialog. There's always a message about "not valid ...." Sad  Setting the brush in the program code works fine ....

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Themes-ListViewSettings-WeeksBrush
Reply #4 - Jan 22nd, 2010 at 3:45pm
Print Post  
I cannot reproduce this problem here. Can you check whether you are referencing the MindFusion.Common.dll found within the downloaded zip file? Can you also provide the complete error message you are receiving and tell me when exactly the error happens - when you open the brush editor, when you close it?

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Themes-ListViewSettings-WeeksBrush
Reply #5 - Jan 22nd, 2010 at 4:02pm
Print Post  
Can you also check what happens in a new project with the assemblies from the zip file?

Regards,
Meppy
  
Back to top
 
IP Logged
 
m.anzi
YaBB Newbies
*
Offline


try harder

Posts: 5
Joined: Jan 15th, 2010
Re: Themes-ListViewSettings-WeeksBrush
Reply #6 - Jan 22nd, 2010 at 4:53pm
Print Post  
oh, sorry ... i've checked the loaded dll's  ... now the error is gone ... everything seems to work fine now Smiley

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