LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to move the scroll bar to the selected text in the textbox

How to move the scroll bar to the selected text in the textbox programatic.
Example:

The is 40 lines in the textbox.
Current selected text at line 9, max visible  line of textbox= 10
How to scroll the text box to line 39 ? programatically

Thanks
Hdn
0 Kudos
Message 1 of 2
(2,895 Views)

Hello,

this should do what you are looking for:

SetCtrlAttribute (pnlHandle, PNL_TEXTBOX, ATTR_FIRST_VISIBLE_LINE, 39);

0 Kudos
Message 2 of 2
(2,891 Views)