From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table Control Scrolling

I'm creating a test sequencer which has a table which lists all the tests and
whether they pass, fail or are in progress. I've been to color the background
depending on the test status (red = fail, green = pass, blue = in progress). My
problem is that the list is too long to fit on the screen, and I would like to
have the list automatically scroll up to keep the current test visible on the
screen. Any ideas on how I can accomplish that?

Thanks
Steve Wynhurst
0 Kudos
Message 1 of 4
(2,891 Views)
This can be done by writing to the Edit Position attribute in LabVIEW 5 or
property in LabVIEW 6. To write to this property create an attribute node
(LV5) or property node (LV6) and select Edit Position.

"SWYNHURST" wrote in message
news:20001110160650.13071.00000786@ng-da1.aol.com...
> I'm creating a test sequencer which has a table which lists all the tests
and
> whether they pass, fail or are in progress. I've been to color the
background
> depending on the test status (red = fail, green = pass, blue = in
progress). My
> problem is that the list is too long to fit on the screen, and I would
like to
> have the list automatically scroll up to keep the current test visible on
the
> screen. Any ideas on how I can accomplish that?
>
> Thanks
> Steve Wynh
urst
0 Kudos
Message 2 of 4
(2,891 Views)
> I'm creating a test sequencer which has a table which lists all the tests and
> whether they pass, fail or are in progress. I've been to color the background
> depending on the test status (red = fail, green = pass, blue = in progress). My
> problem is that the list is too long to fit on the screen, and I would like to
> have the list automatically scroll up to keep the current test visible on the
> screen. Any ideas on how I can accomplish that?
>

Assuming that you know how many items are in the table, you
can set the scroll position using an attribute or property
node. You will be setting the top left cell number, so that
is why you will need to know the size.

Greg McKaskle
0 Kudos
Message 3 of 4
(2,891 Views)
Thanks for the reply. After playing around a little, I found that I could
scroll to any row by setting the Table Attribute-Edit Position to the row and
column I want, which will bring that row to the bottom of the visible portion
of the table.

Thanks again.
0 Kudos
Message 4 of 4
(2,891 Views)