Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic InplaceEditable text box does not get text cursor? (Read 2712 times)
ulthien
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
InplaceEditable text box does not get text cursor?
Aug 28th, 2013 at 9:08am
Print Post  
Very strange issue here -

the same InplaceEditable methods work on two diagrams for the same node objects, and in main diagram the (double-click) opens an edit rect with text insert cursor in place, in auxilliary diagram this happens too, but no text cursor appears on its own.. so the user has to click once more into the box to get cursor placed.

As the EditRect is not exposed (to mindfusion programmer), i cannot set the cursor per code explicitly...?

Any tips?

cheers
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: InplaceEditable text box does not get text cursor?
Reply #1 - Aug 28th, 2013 at 10:27am
Print Post  
The text insert cursor appears when a control has the keyboard focus. The diagram control calls Focus() on the edit field when you double click a node to edit its text. However the keyboard focus might not change if an event handler for events such as PreviewGotKeyboardFocus and PreviewLostKeyboardFocus sets e.Handled. So, check if some controls from the window that contains your auxiliary diagram don't handle these events. You could also try invoking e.TextBox.Focus() yourself from EnterInplaceEditMode event handler, but there's no reason your call to work better than ours Smiley

I hope that helps,
Stoyan
« Last Edit: Aug 28th, 2013 at 12:02pm by Stoyo »  
Back to top
 
IP Logged
 
ulthien
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
Re: InplaceEditable text box does not get text cursor?
Reply #2 - Aug 28th, 2013 at 3:19pm
Print Post  
haha thx stoyo Smiley

actually now that you spoke of it i checked with snoop and the previewkey event was stolen by the scrollviewer around the auxilliary diagram. OFC, i can turn it off to focusable=false and then our node texts function well.

OTOH, the scrollviewer is no more responding to direction arrows..
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: InplaceEditable text box does not get text cursor?
Reply #3 - Aug 28th, 2013 at 4:06pm
Print Post  
I suppose you could toggle scroll viewer's focusable state in response to Enter/Exit InplaceEditMode events then, if you also need keyboard scrolling.

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


I love YaBB 1G - SP1!

Posts: 91
Location: Munich
Joined: Nov 29th, 2011
Re: InplaceEditable text box does not get text cursor?
Reply #4 - Aug 28th, 2013 at 4:17pm
Print Post  
thx, excellent tips as usual Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint