Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69576

Multicolumn Listbox scroll bar woes

$
0
0

If I am missing something, not googling correctly, please let me know, as I cannot find, and don't think there is a solution, unless there is some special secret INI key I do not know about.

Background:

I am using a multicolumn listbox whose first three columns contain symbols for various "DAQ" actions. In the picture below, there is a record, stop, and edit task symbol.

Snap3.png

Unfortunately you cannot "merge" column headers for a multicolumn listbox. The "Actions" label is a free floating decoration that sits on the listbox.

 

Here's the problem:

There is a horizontal scroll bar at the bottom of the listbox, when the user scrolls I want to move my decoration label like it is part of the listbox column headers. 

Problems:

  1. It does not seem possible to get the value of the horizontal scroll bar from a listbox property node. Maybe there is a hidden property for this? @paul_cardinale I am looking in your direction. Smiley Happy
  2. I thought about making my own scroll bar for the list box, but I would not be able to use smooth scrolling as the property "Active CellSmiley Tongueosition Property" is read only. I could make/use a scroll bar to scroll column to column though as a work-around.
  3. I can do something "clunky" like below on a mouse up/down event on the scroll bar. Here I set to a known active cell, find its position, and adjust the position of the decoration. However, it is not smooth.

Snap5.png

 

Any suggestions or workarounds?

 

Thanks.

 

Cheers,

mcduff


Viewing all articles
Browse latest Browse all 69576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>