Date Gadget |
Home |
Introduction |
Tips and Techniques |
Projects |
Libraries |
Links |
|
LibraryTested with Functional Developer 2.0. You can download version 1.0 of the date-gadgets projects here: date-gadgets.zip (approx. 9KB). OverviewThis is a simple DUIM gadget for entering dates. It is implemented using the Win32 Date Time Picker common control. I wrote it as an experiment to learn how to create new DUIM gadgets so it's pretty basic. I've provided the source code for anyone who wants to build on it or use it as an example of how to create DUIM gadgets based on Win32 controls. There are three projects in the .zip file. They are:
Quick Notes
The ' Example Usagemake(<date-selection-field>, value-changed-callback: on-date-changed, value: make(<date>, year: 1990, month: 12, day: 9)); make(<date-selection-field>, no-date-valid?: #f); ImportantThis is code that was pretty much thrown together just to try out creating new DUIM gadgets. I'm providing the source code as an example of how I created a DUIM gadget. Feel free to use it as you wish but I don't take any responsiblity for it working or not working as you intend it to. I had a problem of access violations occuring when clicking on the year in the date control and trying to edit it. I tracked the cause of this to a problem with a version of the common control DLL that was installed with some beta software. Downloading the latest common control DLL from microsoft fixed the problem. The common controls DLL can be obtained from the Microsoft web site. |
|
Copyright © 2000, Chris ^M
Double. All Rights Reserved. |