Issue: 14.3 (May/June 2016)
Author: Scott Boss
Author Bio: Scott Boss is the founder of Nocturnal Coding Monkeys, Llc, who specialize in writing custom software. Scott has been a developer, system administrator, storage engineer, consultant, and architect to businesses from startup to global 100.
Article Description: No description available.
Article Length (in bytes): 6,979
Starting Page Number: 80
Article Number: 14311
Related Link(s): None
Excerpt of article text...
This issue we will be looking at Xojo Calendar and Time Chooser (https://github.com/IntelligentVisibility/CalendarTimeChooser). At the time of writing this column, it was version 3.0.3. Mike Cotrone of Intelligent Visibility wrote the control to give us a good calendar and/or time picker.
One of the benefits of using this set of pickers is that they are written in pure Xojo which means they are portable between desktop platforms (Mac, Windows, and Linux—even Pi should work, but I didn't test it) and various versions of Xojo (2014R2.1+). Also the benefit of being pure Xojo is that you can see what is happening underneath the hood and make changes/fixes as you see fit.
First we will look at the combination Calendar and Time picker. As you can see from Figure 1, you have the calendar on the left and the clock on the right. This gives you the ability to pick the date and the time.
Sometimes you just want a Calendar picker. When we look at Figure 2, we can see how this control can be used for that. We can even chose to have a gradiant background so it stands out.
There are times that you just need a Time picker. If we look at Figures 3a, 3b, and 3c, we have several options on how the clock looks. These are just a few of the many options to chose from. Using the existing clocks as examples, you can always add more clock faces yourself. Doing that is out of scope for this article. I wish there was a military style 24-hour clock. Those clocks show all 24 hours on the face of the clock, instead of the 12 on a normal clock.
I made a custom window with the Calendar picker and a listbox to list all the notes written for a given day (a personal application I have been working on for a client). In the application, the notes are ordered by the date they are started (see Figure 4).
...End of Excerpt. Please purchase the magazine to read the full article.