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
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.
Thanks, Brian,
Could this be fixed by setting SelectionStart=0 and SelectionLength=0 on the LabelEdit control after CTRL+V KeyPressed on it ?
Thanks for the answer, Brian.
Any ideas how to make a workaround?