This is the last in a series of posts on some of the extended QControls that come already installed with the QControl Toolkit. There is no separate download for these. To get them just install the QControl Tool Kit available here:
The QControl Toolkit on LabVIEW Tools Network
After installed, examples can be found in the NI Example Finder and the Controls (Facades) and the methods can be found in the Addons-->QControl Palettes.
The QControl Toolkit on LabVIEW Tools Network
After installed, examples can be found in the NI Example Finder and the Controls (Facades) and the methods can be found in the Addons-->QControl Palettes.
Overview
The LargeScrollbar QControl operates just like a regular scrollbar except that, when using the included facades, is it large format for touchscreen control. Pictured is a Multicolumn Listbox using two instances: one for vertical and one for horizontal:
The Scrollbars work by the main application using the Value Change Event on the slider in the facade and using the value to set the position of the String, Listbox, or in the example case, a Multicolumn Listbox.
The gives that benefit that this code can be reused multiple ways, as vertical or horizontal, or with multiple different types of controls.
If it is desired to further encapsulate the function of the scrollbars with a specific control, it is recommended to create a new child class. Then in that class include the control in the cluster and put the code above into the Event Handler Method.
Comments
Post a Comment