Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic can the diagram.Selection draw slection's bounds? (Read 1199 times)
chowy
Junior Member
**
Offline


I Love MindFusion!

Posts: 72
Joined: May 8th, 2017
can the diagram.Selection draw slection's bounds?
Aug 17th, 2017 at 9:43am
Print Post  
I want to inherit the Selection class and then override the DrawHandles method. Realize the kind of style in the picture.And I want to drag the handle to modify the size of the selection.
  

selection.png ( 57 KB | 85 Downloads )
selection.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: can the diagram.Selection draw slection's bounds?
Reply #1 - Aug 17th, 2017 at 1:17pm
Print Post  
You cannot inherit the Selection class at this time. Try drawing handles from the DrawForeground event handler instead. To initiate resize you will need to create custom BehaviorBase -derived class that returns new InteractionState(Diagram.Selection, new NodeAdjustmentHandle(NodeHandleType....), Action.Modify) from StartDraw override.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint