Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node handles change color whe load diagram (Read 4992 times)
PDM.
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 256
Joined: Dec 2nd, 2010
Node handles change color whe load diagram
May 18th, 2011 at 7:22am
Print Post  
The custom node handles change color to RED, when load diagram already saved.
Why this happen?

How correct this problem?
Best regards.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node handles change color whe load diagram
Reply #1 - May 18th, 2011 at 7:54am
Print Post  
Do the handles get disabled, or just their color changes?
  
Back to top
 
IP Logged
 
PDM.
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 256
Joined: Dec 2nd, 2010
Re: Node handles change color whe load diagram
Reply #2 - May 18th, 2011 at 1:16pm
Print Post  
Just color change to RED.

???
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node handles change color whe load diagram
Reply #3 - May 18th, 2011 at 1:32pm
Print Post  
By custom node handles do you mean custom-drawn ones? If so, what does your DrawAdjustmentHandles event handler look like?
  
Back to top
 
IP Logged
 
PDM.
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 256
Joined: Dec 2nd, 2010
Re: Node handles change color whe load diagram
Reply #4 - May 19th, 2011 at 6:27am
Print Post  
var TopLeft = new Point(0, 0);
          e.Graphics.DrawRectangle(form.SelectedItemHandlesStyle.PatternBrush, form.SelectedItemHandlesStyle.DashPen, new Rect(TopLeft, size));
         

Is how i construct my custom handles.
This is what you ask?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node handles change color whe load diagram
Reply #5 - May 19th, 2011 at 10:48am
Print Post  
Our bad, the control cannot serialize DrawingBrush objects at this time, so the PatternBrush value is lost. For the time being you can either pass your own DrawingBrush instance to DrawRectangle, or reset SelectedItemHandlesStyle.PatternBrush to its original value after loading.
  
Back to top
 
IP Logged
 
PDM.
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 256
Joined: Dec 2nd, 2010
Re: Node handles change color whe load diagram
Reply #6 - May 19th, 2011 at 2:14pm
Print Post  
Amazing !! finally i report one bug ! : )

Please can showme how rester after load?

SelectedItemHandlesStyle.PatternBrush to its original value after loading.

When this be fixed¿

Best regards!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node handles change color whe load diagram
Reply #7 - May 19th, 2011 at 2:52pm
Print Post  
Try this:

var defaultStyle = new HandlesVisualStyle(form);
form.SelectedItemHandlesStyle.PatternBrush = defaultStyle.PatternBrush;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
PDM.
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 256
Joined: Dec 2nd, 2010
Re: Node handles change color whe load diagram
Reply #8 - May 20th, 2011 at 11:43am
Print Post  
Thankyou, this work !
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint