Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Frame node selection (Read 948 times)
BigWander1
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Sep 26th, 2024
Frame node selection
Aug 19th, 2025 at 6:01am
Print Post  
Hi! Frame node drawing starts when mouse hovers on non-interactive item. Is it possible to override existing mouse events that allows to start drawing frame node of mouse hovers interactive element (Currently its possible to only select it). Or could you suggest me possible solution for my case please? We use custom behavior that inherits from `MoveNodesBehavior`.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3510
Joined: Oct 19th, 2005
Re: Frame node selection
Reply #1 - Aug 19th, 2025 at 7:44am
Print Post  
Hi,

By frame node do you mean the selection lasso rectangle? If you always want it drawn, regardless of whether nodes under mouse pointer are interactive, you could set:

Code
Select All
diagramView.Behavior = Behavior.SelectOnly; 



If you still need to support other kinds of interactions from your custom behavior class, you can return this from its StartDraw override:

Code
Select All
public override InteractionState StartDraw(Point point)
{
    // ...

    return new InteractionState(
        Diagram.Selection, null, Action.Create);
} 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint