Farid2010 Posted August 31, 2010 Report Share Posted August 31, 2010 I want to link a listbox to an event structure but i don't know how to assign each item in list as a case in event-case structue. It only shows the whole list box when i want to Add an event case!! how can i define each item in my list as a case in event structure? Quote Link to comment
Ton Plomp Posted August 31, 2010 Report Share Posted August 31, 2010 You can use the 'Value Change' event to detect if an item is selected. What kind of events do you want to create? Ton Quote Link to comment
Aristos Queue Posted August 31, 2010 Report Share Posted August 31, 2010 I want to link a listbox to an event structure but i don't know how to assign each item in list as a case in event-case structue. It only shows the whole list box when i want to Add an event case!! how can i define each item in my list as a case in event structure? You don't. You put a case structure in the one frame of the event structure that handles Value Change event for the list box. Quote Link to comment
Farid2010 Posted August 31, 2010 Author Report Share Posted August 31, 2010 (edited) I have put a listbox in my user interface (like the attached image file) and want to use event structure to make an event for each item when selected by user. Edited August 31, 2010 by Farid2010 Quote Link to comment
Farid2010 Posted August 31, 2010 Author Report Share Posted August 31, 2010 You don't. You put a case structure in the one frame of the event structure that handles Value Change event for the list box. Thanks.Do you have a sample to send me? Quote Link to comment
Ton Plomp Posted September 4, 2010 Report Share Posted September 4, 2010 Thanks.Do you have a sample to send me? Hi Farid, do you have any code where we can expand on? Ton Quote Link to comment
ShaunR Posted September 4, 2010 Report Share Posted September 4, 2010 Thanks.Do you have a sample to send me? There are several examples shipped with labview . Use the NI example finder and you will find them under: >Building User Interfaces > Listboxes and Tables Quote Link to comment
Farid2010 Posted September 8, 2010 Author Report Share Posted September 8, 2010 Thank you all. still not found the way but i will try on ni examples. 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.