LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Textbox automtically set last line

Hello,
 
is there a possibility to set the last line in a text box visible when there are many lines in the textbox.
For example, I have a textbox with 3 visible lines without scrolling. Now when I am putting two new ones in, I still see the first three lines.
I would like that I can see the last insert line.
 
For the moment this is my solution, but for me i think it is too difficult...
 
  GetNumTextBoxLines (Sensor_Panel, PANEL_STATUS_TESTS, &lines);   
  InsertTextBoxLine (Sensor_Panel, PANEL_STATUS_TESTS, -1, "Klemme15 EIN");
  SetCtrlAttribute (Sensor_Panel, PANEL_STATUS_TESTS, ATTR_FIRST_VISIBLE_LINE, lines);
 
Thanks
 
Thomas
0 Kudos
Message 1 of 2
(2,989 Views)
Try using SetCtrlVal. The help says "When you call SetCtrlVal on a text box, SetCtrlVal appends value to the contents of the text box and scrolls the text box to display value."
 
Hope this helps,
 
- jared
Message 2 of 2
(2,980 Views)