Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic display a watermark (Read 2312 times)
bashi003j
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Feb 15th, 2010
display a watermark
Jul 9th, 2012 at 9:46am
Print Post  
I want to display something like a watermark or something like it shows when we set the property
Resource Length Method to ResourceLengthMethod.MinimumFixed.
basicaly 2 colors in the header part or in the item.
is this possible in mindfusion .net planner ?
thankyou.
  

Capture_003.PNG ( 9 KB | 221 Downloads )
Capture_003.PNG
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: display a watermark
Reply #1 - Jul 9th, 2012 at 12:26pm
Print Post  
You can do this by using custom drawing. Set Calendar.CustomDraw to ResourceViewItem, then handle the Calendar.Draw event and use the following code in the event handler:

Code
Select All
if (e.Element == CustomDrawElements.ResourceViewItem)
{
	using (Brush watermark = new SolidBrush(Color.FromArgb(100, Color.Black)))
		e.Graphics.FillRectangle(watermark, e.Bounds.X, e.Bounds.Y, Math.Min(e.Bounds.Width, calendar1.ResourceViewSettings.MinResourceLength), e.Bounds.Height);
} 


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


I love YaBB 1G - SP1!

Posts: 2
Joined: Feb 15th, 2010
Re: display a watermark
Reply #2 - Jul 9th, 2012 at 12:46pm
Print Post  
Thanx alot Meppy... thats exactly i was searching for...
Thanx again
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint