The OrderSelection QControl Code can be found here:
OrderSelection QControl.zip
The QControl Toolkit is required to use this and can be found here:
The QControl Toolkit on LabVIEW Tools Network
Overview
Here is another QControl I created to try to answer a question in the discussion board. You can access the original question here.
The requirement the OP of the question needed was a control that could help his application's user order a list of items. This is quoted from his post:
"I need a simple way for my users to be able to select and order a number of items... I would prefer to provide a larger iconic representation of the items and present them horizontally, since they will ultimately represent column headers in a data file. Drag and drop would of course be needed." from @auspex
So I decided to attempt a control like he described using the QControl Toolkit.
Here is a view of what the OrderSelection QControl looks like but it is customizable. It is based on a picture control.
The item image is a PNG in the facade folder in the QControl Class. You can change it if you want a different look (either name the new PNG the same or edit the code in the initialize control method that reads in the PNG). All of the programming for the item sizing is based around the size of the item PNG and the size of the picture control.
Use the "Test OrderSelection.vi" as an example of how to use it. Using it is as easy as setting the 1D array of Items in a property, getting the value change event on the picture control, and then reading the 1D array of Items back out.
Comments
Post a Comment