Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 14.3 ('Sunroom')
Instant purchase and download via GumRoad!

COLUMN

Column

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.