UI Interest Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

OrderSelection QControl

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 (Again it can be downloaded here.)

Here is a view of what the OrderSelection QControl looks like but it is customizable.  It is based on a picture control.

OrderingSelector.png

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.


Quentin "Q" Alldredge

Q Software Innovations, LLC (QSI)

CLA, LabVIEW Champion

NI Alliance Partner

LabVIEW Wiki (http://bit.ly/lv_wiki)

Comments
Member Hongtao
Member

Hello, 

This project needs "picture.lvclass", could you share it?

Member TheQ Member
Member

Hongtao,

 

The "Picture.lvclass" is part of the QControl Toolkit which is free from the NI Tools Network. There is a link in the original post.

 

--"Q"


Quentin "Q" Alldredge

Q Software Innovations, LLC (QSI)

CLA, LabVIEW Champion

NI Alliance Partner

LabVIEW Wiki (http://bit.ly/lv_wiki)

Contributors