Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how could I correct the text entry box's position? (Read 1697 times)
chowy
Junior Member
**
Offline


I Love MindFusion!

Posts: 72
Joined: May 8th, 2017
how could I correct the text entry box's position?
May 10th, 2017 at 8:23am
Print Post  
In my example, I created a custom TextNode that inherited from DiagramNode, but at the time of the drawing, my text entry box was offset and how could I correct its position? I uploaded the demo source code.
  

TextNodeDemo.zip ( 39 KB | 111 Downloads )
entrybox.png ( 7 KB | 91 Downloads )
entrybox.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: how could I correct the text entry box's position?
Reply #1 - May 10th, 2017 at 9:52am
Print Post  
try this -

Code
Select All
public Rect GetEditRect(Point mousePosition)
{
    return GetLocalBounds();
} 



Regards,
Slavcho
  
Back to top
 
IP Logged
 
chowy
Junior Member
**
Offline


I Love MindFusion!

Posts: 72
Joined: May 8th, 2017
Re: how could I correct the text entry box's position?
Reply #2 - May 10th, 2017 at 10:03am
Print Post  
Slavcho wrote on May 10th, 2017 at 9:52am:
try this -

Code
Select All
public Rect GetEditRect(Point mousePosition)
{
    return GetLocalBounds();
} 



Regards,
Slavcho


Thanks!!!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint