PocketC Calendar Control 1.0  Ralf Schieferdecker Hit Counter
Features Screen Capture  Download   License Term Support 

POCKETC Calendar Control for PPC and HPC (req. POCKETC 2.x)
This tool was build with informations from Claus Tøndering' s Document 
"Frequently Asked Questions about Calendars Version 2.1"
you can find this here (http://www.tondering.dk/claus/calendar.html)  

Thanks to Claus ! 

Features

PocketC Calendar Control is an easy to use Date Picker written in PocketC
you can use this tool for FREE in your own Applets for an easy Date Input.


 how to use this Calendar Control in your Applet please see the example


Download

Download CALENDAR.ZIP and copy the file: CALENDAR.PC into your POCKETC-Folder


Example and Screen Capture

the following code demonstrates the PocketC Calendar Control in a little Date-Picker Applett:
you can see that only one function to call is necessary for using this Control.

CALDEMO.PC  (included in the download file)

#include "\\pocketc\\calendar.pc"
#include "\\pocketc\\pcheader.h"
eventhandler()//generated by PocketC Keypad
{
   
int e,g;string d;
    while(1)
    {
        e=event(0);
        switch(e)
        {
            case PM_BUTTONDOWN:
            {
                g=guiid();
                switch(g)
                {
                case 100:
                    wndshow(100,0);
                    wndshow(101,0);
                    d=CalendarBoxToday(13,30,1,1);
                    wndshow(100,5);
                    wndshow(101,5);
                    if (d||"")
                    {
                        editset(700,d);
                    }break;
                    case 101:
                    {
                        quit();
                    }break;
                }
            }
        }
    }
}
main()
{
    menu_off();
    createctrl("STATIC","Pick a Date:",WS_VISIBLE,0,13,10,100,17,700);
    createctrl("BUTTON","v",WS_VISIBLE,0,116,10,27,17,100);
    createctrl("BUTTON","X",WS_VISIBLE,0,216,0,24,24,101);
    eventhandler();
}


License Term
By downloading and installing PocketC Calendar Control, you agree to the following terms concerning usability and liability.

PocketC Calendar Control is Copyright © 1998-1999 by Ralf Schieferdecker.

We are not responsible for any damage to the user's computer system or data and in no event will Kevin Cao, Jeremy Dewey and Ralf Schieferdecker be responsible to the purchaser for any consequential, incidental, or indirect damages arising out of the use or inability to use PocketC PocketC Calendar Control

Ralf Schieferdecker 11/13/1999