The Calendar QControl Code can be found here:
Calendar 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 that I had programmed earlier as an XControl. I decided I wanted to try reprogramming it as a QControl. I call it the Calendar QControl.
View of the Calendar Facade.
The Calendar QControl is a cluster with multiple controls inside of it. The Calendar Facade Control should be used on the Front Panel of the VI that uses this QControl. The references of the elements of the cluster are handled by editing the Load Reference Method. The Event Handler Method uses the references to control all of the behavior.
When in use in the main application, the Calendar: Value Change Event (on all elements of the cluster) will fire whenever the date has changed. See the Test Calendar.vi that is part of the class for an example.
Front Panel of the Test Calendar VI.
All of the colors, the first day of the week, and the visibility of the Horizontal Lines, Vertical Lines, Today Button, and Month-Year Selectors are changable through Properties (using property nodes on the QControl Class wire).
Comments
Post a Comment