Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic PaintBackground event (Read 2206 times)
andy
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 9th, 2005
PaintBackground event
Nov 9th, 2005 at 8:20pm
Print Post  
Hi,

is there a PaintBackground event or something like that? Can't find anything that would help... I'm using a class to do the painting (mainly backgrounds) to support themes. Pretty much like the ToolStripProfessionalRenderer class in .net 2.0.

If I don't want to paint everything by myself I can't use the Paint event though as it overdraws elements.

Any ideas? I'd appreciate it... thanks heaps.

Cheers,
Andy
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PaintBackground event
Reply #1 - Nov 10th, 2005 at 5:03am
Print Post  
Hi,

There isn't any such event. You might try setting the flowchart's Brush, used to paint the background, to a texture or gradient brush.

If that won't do, create a box in the background, lock it and set it to be fully custom drawn. I.e. box.ZIndex = 0, box.Locked = true, box.CustomDraw = Customdraw.Full. Also set the box size so that it covers the whole flowchart's DocExtents. Now handle the DrawBox event to paint the background.

Cheers,
Stoyan
  
Back to top
 
IP Logged
 
andy
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 9th, 2005
Re: PaintBackground event
Reply #2 - Nov 10th, 2005 at 8:21pm
Print Post  
Hi Stoyan,

thanks for your help... the box in the background should work fine. Thanks for the idea!

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