ancle Posted August 5, 2004 Report Share Posted August 5, 2004 I want to put VIs on the listbox and use scroll, because my screen is not too big to put VIs on it. However, the listbox just can put strings. How can I do ?Thanks! Quote Link to comment
James McAnanama Posted August 5, 2004 Report Share Posted August 5, 2004 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). Quote Link to comment
Michael Aivaliotis Posted August 6, 2004 Report Share Posted August 6, 2004 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. Quote Link to comment
ancle Posted August 9, 2004 Author Report Share Posted August 9, 2004 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 Quote Link to comment
todd Posted August 9, 2004 Report Share Posted August 9, 2004 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. Download File:post-107-1092084358.vi Download File:post-107-1092084368.vi Quote Link to comment
Mikrobi Posted August 10, 2004 Report Share Posted August 10, 2004 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 Quote Link to comment
Michael Aivaliotis Posted August 10, 2004 Report Share Posted August 10, 2004 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: Quote Link to comment
Michael Aivaliotis Posted August 10, 2004 Report Share Posted August 10, 2004 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. Quote Link to comment
Mikrobi Posted August 10, 2004 Report Share Posted August 10, 2004 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 Quote Link to comment
Mike Ashe Posted September 29, 2004 Report Share Posted September 29, 2004 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.