LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make vertical scrollbar visible for listbox which shows one entry only?

Hi Haik,

 

in general, i.e. true for any forum, if you have a question that is different from the one discussed in a particular thread, you should not 'hijack' it but rather start a new one with your own subject Smiley Wink Imagine everyone would join, it would result in one thread with an inestimable number of subjects...

0 Kudos
Message 11 of 13
(1,276 Views)

Creating your own buttons for scrolling has been mentioned a couple times, so I thought I would make a quick example of this.  I hope that you will find it useful, and that perhaps it will help to address the issue raised by Wolfgang in the Idea Exchange.

 

In the attached example are two files that should be generally useful - UpDownArrows.c and UpDownArrows.h.  These files expose one function - AddUpDownArrowsToCtrl.  You give this function the control (and panel) to which you wish to attach inc/dec buttons, and a function that will be called when the buttons are clicked.  This function will be defined by you, and will respond to either an up or down button click.  This way, you can define how the control should increment or decrement.

 

NickB_04-08_09-19-12.png

 

I hope this is helpful -

 

NickB

National Instruments

Message 12 of 13
(1,265 Views)

Quite fancy!

 

While I need to study the code in more detail, it looks and works very nice... Are you considering to add it to future releases of CVI, either as toolbox sample or as a real function? You have my vote and kudo Smiley Wink

 

Many thanks, Nick!

0 Kudos
Message 13 of 13
(1,259 Views)