LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multicolumn listbox disable auto-scroll function/allocate static number of box only

Hi All,

 

I have a hardware parameter listbox, and I wanted each of the listbox to have only 20 fill-able box. 

I have use 5 listbox because I want to have the content to drag and drop among them. 

 

From the pictures attached, when I drag the content near to the red circle, the listbox will auto scroll down. And it will exceed 20 box if I drop it to the selected box. 

 

So, can somebody help me how to "disable" the rest of the box in the list box (those >20box )? or disable the scroll function ? 

 

Thanks in advance ..

Download All
0 Kudos
Message 1 of 10
(3,891 Views)

Hi engwei,

 

If you want to limit the number of rows in the list box to be 20, I would suggest you to use Property Node. What I used below is: Active Row>>Active Row Number and Drag/Drop>>Allow Dropping. So, when the row is more than 19 in Card 3, then the user would not be able to drop any contents in Card 3. 

You may refer to the picture below:

 VI

 

Please let me know if this solution works for you or not. Have a nice day!

Sincerely,

 

 

Krisna Wisnu

Applications Engineer

NI ASEAN

 

Message Edited by Krisna Wisnu on 09-29-2008 09:58 PM
Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2021
0 Kudos
Message 2 of 10
(3,872 Views)

Thanks for your suggestion

 

I have play around with ur method..

I try to drag and drop.. And it is still droppable and >20 box since it could be drop.. 

 

 

 

 

0 Kudos
Message 3 of 10
(3,867 Views)

Hi engwei,

 

I was wondering:

1. Do you run the VI when you perform Drag and Drop?

2. The screenshot I gave you only for Card 3, do you drag and drop on Card 3 when the row>20?

 

I tried on my end, to add more than 20 rows by drag and drop to Card 3, and I am not able to drop in Card 3 when Row>20. Please let me know if I have missunderstood you.

 

Krisna Wisnu

Applications Engineer

NI ASEAN

 

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2021
0 Kudos
Message 4 of 10
(3,864 Views)

Ya, it is card3. At the starting it won't allow me to drop, then after I drag out, drop, and drag in again, it will allow me to drop again..

 

Now the problem is, 

After I reinitialize all the items in card3 to be empty, and I try to drag into the box again, I can't even drog I item..

 

 

Message Edited by engwei on 09-29-2008 11:12 PM
0 Kudos
Message 5 of 10
(3,853 Views)

Hi engwei,


Try this solutions (see attachment) for Card 3 only.

 

Let me know if it works for you or not.

Sincerely,

 

 

Krisna Wisnu

Applications Engineer

NI ASEAN 

 

PS: sorry for that, I have changed the LV version

Message Edited by Krisna Wisnu on 09-30-2008 03:03 AM
Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2021
0 Kudos
Message 6 of 10
(3,836 Views)

Opss.. I m using labview 8.5 ..

 It is possible to have this vi in 8.5 version ? 

When I m trying to open it, it shows an error that your vi is in 8.6 version and can't open with mine. 

 

Thank you very much

0 Kudos
Message 7 of 10
(3,834 Views)

Hi engwei,

 

I have reattached the VI.

 

Let me know if it is working for you or not.

Sincerely,

 

 

Krisna Wisnu
Applications Engineer

NI ASEAN

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2021
Message 8 of 10
(3,806 Views)

 

Get your idea !

 

🙂 Thanks a lot !!!


 

0 Kudos
Message 9 of 10
(3,802 Views)

Hi engwei,

 

Your welcome. Let me know if you have more questions. Have a nice day!

Sincerely,

 

 

Krisna Wisnu

Applications Engineer

NI ASEAN 

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2021
0 Kudos
Message 10 of 10
(3,799 Views)