Jump to content

how to put VIs on the listbox


Recommended Posts

I am not sure if I understand your problem correctly. It appears to me that your user interface is too large for the screen? If this is the case, you may want to try using tab controls to show only relevant portions of your UI at the desired times. (Tab controls are located under the "Array and Cluster" pallet).

Link to post
Share on other sites

James, your interpretation is as good as mine. I'll give it a shot.

ancle,

You have a small screen resolution and your VI block diagram has limited space? You want to have a scroll mechanism to place multiple VI's in a small diagram area? You can use a sequence structure!

Unless I got it wrong. :(

Link to post
Share on other sites

Sorry, my English is poor. I try to explain my condition again. There is a example. In my user interface, in special reason I want to put the Numeric 13 under the Numeric 12 on the listbox 2 and use scroll. The listbox can accept strings and it can use scroll. Is there have any methods can put the Numeric 13 under the Numeric 12 on the listbox 2 and use scroll?

Download File:post-518-1092030592.vi

Link to post
Share on other sites
The problem is that Listbox 2 does not contain the Numerics. The Listbox is underneath the numerics. Perhaps this subpanel (with a better connector-less scheme) will help.

1346[/snapback]

It is very good solutions todd, but I sugest little modification for main vi:

it should be saved with t_listbox___tab_control_panel.vi in this same directory.

best regards

Mikrobi

Download File:post-62-1092121871.vi

Link to post
Share on other sites
it should be saved with t_listbox___tab_control_panel.vi in this same directory.

best regards

Mikrobi

1351[/snapback]

Just a suggestion for future posts (for all members). If your code requires related multiple VI's, please include them all inside an *.llb file or a *.zip file. This will help others launch and run your example quicker. :thumbup:
Link to post
Share on other sites
Sorry, my English is poor. I try to explain my condition again. There is a example. In my user interface, in special reason I want to put the Numeric 13 under the Numeric 12 on the listbox 2 and use scroll.  The listbox  can accept strings and it can use scroll. Is there have any methods can put the Numeric 13 under the Numeric 12 on the listbox 2 and use scroll?

1335[/snapback]

Ok, I think I got it now. One question, do you absolutely require editing of the numerics? If not, then you can just convert the numbers to strings and feed them into the listbox. If you require editing then a better approach would be to use an array of numerics than a listbox. If you want to have a scrollbar then you can use the technique described here:

Replacing the Array index with a slider.

Link to post
Share on other sites
Just a suggestion for future posts (for all members). If your code requires related multiple VI's, please include them all inside an *.llb file or a *.zip file. This will help others launch and run your example quicker.  :thumbup:

1360[/snapback]

Right :headbang:

regards

Mikrobi

Link to post
Share on other sites
  • 1 month later...

Here is another slightly modified version of the listbox tab control modify / panel VIs. I just moved the generation of the references outside to avoid memory leaks and added a slight delay in the read loop to allow other VIs to operate.

This could continue to be modified to make it more generic (and therefore useful) by:

1. using a tree control to write the values to (with filter options),

2. optional timeing on how often to update the value tree,

3. making a list of VIs running in memory and allowing switching between them

So many mods, so little time...

Mike

Download File:post-45-1096481602.zip

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.