Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resours View Row Header (Read 4138 times)
ColinA
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Aug 27th, 2013
Resours View Row Header
Nov 19th, 2013 at 1:47pm
Print Post  
Hi

I have  between 1 and 10 resources to show and I want to give them all  different header colour I can change the  colour of all at design  is the  way ahead  in the custom  draw event or is it a simple as changing the  resourseviewsettings.style.headerbrush a when adding to the collection?  any help in the right direction would be appreciated

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resours View Row Header
Reply #1 - Nov 19th, 2013 at 2:35pm
Print Post  
Hi,

You have to use custom drawing. There is a sample attached to one of the replies in this post that demonstrates how this can be done.

Regards,
Meppy
  
Back to top
 
IP Logged
 
ColinA
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Aug 27th, 2013
Re: Resours View Row Header
Reply #2 - Nov 20th, 2013 at 8:18am
Print Post  
Cheers for that Meppy,  got it working but it changes all  headers to the  new colour not just the new row
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resours View Row Header
Reply #3 - Nov 20th, 2013 at 8:46am
Print Post  
Hi,

The event is raised once for each row header. You can custom-draw selectively, based on the value of DrawEventArgs.Resource.

Regards,
Meppy
  
Back to top
 
IP Logged
 
ColinA
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Aug 27th, 2013
Re: Resours View Row Header
Reply #4 - Nov 20th, 2013 at 9:30am
Print Post  
Hi Meppy

I also had to comment out the line

if (e.Resource.CustomBrushes.PrimaryBrush == null)
     return;

or  it would never get into  the  code as it was always true.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint