Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How can I set Text into node while typing (Read 2949 times)
gamjaradio
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 42
Joined: Jul 16th, 2010
How can I set Text into node while typing
Jul 16th, 2010 at 4:41am
Print Post  
I have a node.
and want to give a text whenerver I type a text.

How can I do this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How can I set Text into node while typing
Reply #1 - Jul 16th, 2010 at 4:58am
Print Post  
You could call DiagramView.setAllowInplaceEdit() and edit the text after a double-click. You might also call DiagramView.beginEdit(node) in response to nodeClicked or keyPressed events to enter edit mode.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
gamjaradio
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 42
Joined: Jul 16th, 2010
Re: How can I set Text into node while typing
Reply #2 - Jul 16th, 2010 at 6:10am
Print Post  
hm.

I did it ,but still doesn't work.

diagramView.setAllowInplaceEdit(true);

When I double click the Node , I can see the White Box , like text Box , but with typing I can not see the text.

please help me.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How can I set Text into node while typing
Reply #3 - Jul 16th, 2010 at 7:04am
Print Post  
Perhaps the edit area does not get the keyboard focus. The control calls inplaceTextArea.requestFocus() when entering edit mode and this works fine in my test app. You might check if some other control on the form does not prevent the focus change due to validation code. Also if you are running this inside a browser, that could be a subject to security restrictions and you would need to click again inside the edit control to move the keyboard focus to it.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint