Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Doubleclicking TableNodes (Read 1957 times)
Pontius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 51
Joined: May 13th, 2011
Doubleclicking TableNodes
Dec 9th, 2011 at 12:33pm
Print Post  
Hi,

I handle the diagram_NodeDoubleClicked event in order to start a configuration dialog.

I have two different TableNode-derived Nodes. The first one should not be movable. I implemented the following properties:
Code
Select All
        Scrollable = false;
        ConnectionStyle = TableConnectionStyle.Rows;
        IgnoreLayout = true;
        TextAlignment = TextAlignment.Center;
        TextVerticalAlignment = AlignmentY.Center;
        CellFrameStyle = CellFrameStyle.None;

        EnabledHandles = AdjustmentHandles.None;
 



The second one is movable but only in vertical direction. It has the same properties except the last one which I exchanged by:
Code
Select All
        EnabledHandles = AdjustmentHandles.Move;
        Constraints.MoveDirection = DirectionConstraint.Vertical;
 



I can doubleclick the first, nonmovable Node at every position and the diagram_NodeDoubleClicked is raised. The second, movable Node I can only doubleclick at its Caption. When I doubleclick it somewhere else, e.g. at a position of a normal cell, the diagram_NodeDoubleClicked is not raised.

I'm afraid this behaviour could confuse the user.
Is it possible to have the diagram_NodeDoubleClicked raised wherever I doubleclick the Node?

Regards,
Pontius
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Doubleclicking TableNodes
Reply #1 - Dec 9th, 2011 at 12:49pm
Print Post  
Hi,

You might be getting CellDoubleClicked events if only the second type of tables display cells. You could call the diagram_NodeDoubleClicked handler from diagram_CellDoubleClicked if you need to run some common code.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Pontius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 51
Joined: May 13th, 2011
Re: Doubleclicking TableNodes
Reply #2 - Dec 9th, 2011 at 1:28pm
Print Post  
Hi Stoyan,

thanks, that works.

Btw my description was a little bit wrong.
My first non-movable TableNode does have Cells too. And I found out that it also doen't raise diagram_NodeDoubleClicked when doublclicking a cell.

Obviously it doesn't have something to do with movability and the properties I postet. It is just doubleclicking a TableNode's Cell that has to be handled by the diagram_CellDoubleClicked event.

Thanks again.
Regards,
Pontius
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint