Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Drawing custom table focus rectangle (Read 1991 times)
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Drawing custom table focus rectangle
Oct 15th, 2009 at 2:37pm
Print Post  
Hi Stoyan,

Thanks for the quality and quickly answers I received from you by now. I came now with a new
issue:

I've used in my diagram, custom table node painting. (Diagram.TableCustomDraw = CustomDraw.Full;).

The DrawNode event is fired twice, once for shadow, once for the table itself. I've changed the shadow bounds and now we have a shadow drawn in the left side of the table too.

My problem is that the dotted focus rectangle follows the old shadow bounds. How can I set the focus rectangle bounds?

Thanks,
Bogdan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drawing custom table focus rectangle
Reply #1 - Oct 15th, 2009 at 2:55pm
Print Post  
Hi,

You might set HandlesStyle = Custom and draw the selection rectangle around the shadow from the DrawAdjustmentHandles event handler. Otherwise it is drawn at the node.Bounds position.

Another option is to draw the shadow at node.Bounds and the actual table in a smaller rectangle inside.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint