01-23-2015 09:54 AM
Hi all.
I'm trying to develop a simple text editor for our application. I have encountered a strange behaviour of the selection cursor inside the string control that i use for visualization and modification of the code. If i hit the "Return" key, while inside the string control, the cursor don't jump down by one line but simply move right of one position. The strange is that the effective cursor placement i right where it must stay, and if i begin to write text this one is exactly where i need it to be. Here some pictures.
Before hitting the return key:
After hitting the return key:
After typing some text:
01-23-2015 10:55 AM
FM82,
Does this happen when you are running your program or when you are in edit mode? If this is happening when you are running your application it would be helpful for us if you attached it so we could look at your code.
To me the "After Typing" picture just looks like standard text wrapping but it would be helpful to have your VI to re-create this behavior.
01-26-2015 01:11 AM
Thank you for your reply.
So: it happens both at runtime and in edit mode, doesn't tried to build an application. Wrapping is disabled.
Francesco
01-26-2015 02:45 AM
Hi FM82,
which version of LV are you using?
Did you try to add a new string control (maybe it's better to try it in a new VI) and verify if the behaviour is the same?
Let me know!
Have a nice day.
FBM
01-26-2015 03:16 AM
01-26-2015 05:30 AM - edited 01-26-2015 05:30 AM
Ok, i have some new informations. It happens only if i read text from a file and than display it to the string control. If i type some text in an empty string control and press the return button all work like i need it to do.