Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
Text alignment in UltraTree after Paste in edit mode
posted

hi! I have an UltraTree with LabelEdit=true

1) Creating some nodes with short words, for example

root

-node1

-node2

2) Copy to Clipboard some long line, for example "01234567890qwertyuioplkjhgfdsa"

3) Two clicks on the node1 or press F2

4) In editor, paste the text >> while editor has the needed width, text is not completely visible, as it is scrolled on the left "behind the screen" (see pic1)

6) now press left button and scroll whole text, so it became visible

7) click Escape, and then activate editor and paste the text again - it was shown and scrolled normally

 

---

how to fix this scrolling issue for the first paste ?

thanks

rilian

Parents
No Data
Reply
  • 69832
    Offline posted

    If I remember correctly, that is a bug in the TextBox control. The text being pasted is wider than the TextBox, and the SelectionStart property is set to bring the caret to the end, so it scrolls the last character into view. It seems to use the last size when it does, however, resulting in the beginning of the text being clipped.

Children