From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



Comments
Hongtao
Member
Member
on

Hello, 

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

TheQ
Active Participant Active Participant
Active Participant
on

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

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



Contributors