LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Highlight a Row during runtime

I have a multicolumn listbox in my program, which is built into an executable and run on a system with a Touchscreen as the primary user interface. One of the users would like to be able to touch a single box and have the entire row containg that box be highlighted. How would I go about doing this? I don't think it would be difficult, but I am having trouble getting started.
0 Kudos
Message 1 of 8
(3,744 Views)


@BobChuck wrote:
I have a multicolumn listbox ...
One of the users would like to be able to touch a single box and have the entire row containg that box be highlighted. How would I go about doing this? I don't think it would be difficult, but I am having trouble getting started.


The default behavior for a multicolumn listbox (in LV6.1 at least) is to highlight the row that has been selected by clicking it.
The selection mode (i.e. 0 or 1 item, 1 item , 0 or more items, 1 or more items) is set during development by right-clicking on the mclistbox and choosing from the drop down menu ... the default is 1 item.

If the Selection Color has been set to be the same as the CellBG color using property nodes, you won't notice the row being highlighted/selected.

=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 2 of 8
(3,724 Views)
Well I've never used 6.1, but in later versions if you right click the listbox, go to Selection Mode -> Highlight Entire Row. This will do what you want if it's not already set that way.
Message 3 of 8
(3,717 Views)
uhh... opps. I made a minor mistake when I asked for help on this... I'm not using aMulti-Column Listbox. I am using a table.
0 Kudos
Message 4 of 8
(3,704 Views)


@BobChuck wrote:
uhh... opps.  ... I am using a table.

Then the EditPos property could be used.
The attached uses antique polling instead of events, but it may give you ideas.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 5 of 8
(3,691 Views)
Thank you very much! That is just what I needed.
0 Kudos
Message 6 of 8
(3,671 Views)

In this example, the property  "OldEditPos" is used.

Is this still in V8.2? I can't seem to find it. I have some of my old code that also uses "OldEditPos" but only "EditPos" seems to be available in V8.2

Is it still there? If so, How do they differ in action?

Struggling with getting key navigation (eg F5, F6) working with boolean buttons here to add rows etc to a table.

0 Kudos
Message 7 of 8
(3,473 Views)

When NI updates a function it is often necessary to change the way the function operates. When this happens to properties as they were prior to the update are exposed as "OldX" and are accessable only by the mutation code that converts VI's saved in earlier version to the current version.

So,

The "Old..." method is still there but LV does not let you select it. You can often cut and paste these but if there is requirement to "update" these nodes they may break.

Changes of this type are often covered in the Upgrade notes of the version were they changed.

NOTE: Not all old methods are ALWAYS retained. Examples of these can be found when comparing the pre-LV8 graphs and charts with the post LV8 versions. These objects were completely overhaled and some of the more obscure functions were dropped or re-defined.

Trying to help,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 8
(3,461 Views)