LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Scroll Table Programming

I have a thread wich add values to a table displayed on a panel.
I'd like to always display the last inserted lines in the table so that the user don't have to click on the table scroll bar to view it (during thread adding table values process).
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 1 of 4
(3,144 Views)
Hi,

here's one solution - I find out the total number of rows and set the first visible line to this. This won't scroll the table so there's only one line visible though, but simply take the table and scroll it until the last line is at the bottom of the table.

int totalRows;
GetNumTableRows (panelHandle, PANEL_TABLE, &totalRows);
SetCtrlAttribute (panelHandle, PANEL_TABLE, ATTR_FIRST_VISIBLE_ROW, totalRows);

Hope that helps

S.
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 4
(3,144 Views)
Thanks to your answer Sacha.
This is exactly what I wanted !!
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 3 of 4
(3,144 Views)
No problem - good luck

S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 4 of 4
(3,144 Views)