09-29-2008 04:01 AM
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 ..
09-29-2008 09:56 PM - edited 09-29-2008 09:58 PM
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:
Please let me know if this solution works for you or not. Have a nice day!
Sincerely,
Krisna Wisnu
Applications Engineer
NI ASEAN
09-29-2008 10:16 PM
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..
09-29-2008 10:41 PM
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
09-29-2008 11:12 PM - edited 09-29-2008 11:12 PM
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..
09-30-2008 02:56 AM - edited 09-30-2008 03:03 AM
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
09-30-2008 03:01 AM
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
10-01-2008 07:45 PM
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
10-01-2008 08:43 PM
Get your idea !
🙂 Thanks a lot !!!
10-01-2008 08:51 PM
Hi engwei,
Your welcome. Let me know if you have more questions. Have a nice day!
Sincerely,
Krisna Wisnu
Applications Engineer
NI ASEAN