LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid line shift in a TextBox

I have a TextBox with 3 visible lines and 0 extra lines. I want avoid that when the user has written the third lines and press the return key, the textbox create a new line and the existing lines shift up. How can I do it ? ThankYou.
0 Kudos
Message 1 of 2
(2,629 Views)
I will create a callback for the textbok and monitor the EVENT_KEYPRESS event: when the third line is reached and Enter key is pressed, I'll swallow the keyboard event (return 1) to avoid updating the control.

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(2,629 Views)