home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / clndrlib.zip / read.me < prev   
Text File  |  1997-08-11  |  881b  |  33 lines

  1. calendar.lib is a cpp library to get a date value.  It presents a
  2. calendar to the user and allows for a selection of any date from
  3. 1756 on.
  4.  
  5. It is easy to use (4 lines of code) as the demo (caldemo.exe/cpp) shows.
  6.  
  7. Just #include "calendar.h" in your source and include calendar.lib
  8. in your project.
  9.  
  10. The snippet below from caldemo.cpp demonstrates usage.
  11.  
  12. ............
  13.    char  tmp[60];
  14.    Date d;
  15.    Calendar *cal;
  16.    
  17.    //Stop multipule instance
  18.    WinEnableControl(hwnd, BTN_CALENDAR, FALSE);
  19.  
  20.    cal = new Calendar;
  21.    cal->show();
  22.    cal->getDate(&d);
  23.    sprintf(tmp, "%s, %i %s %i", d.dow, d.day, d.mnth, d.year);
  24.    WinSetWindowText(WinWindowFromID(hwnd, EF_DATE), tmp);
  25.    delete cal;
  26.    WinEnableControl(hwnd, BTN_CALENDAR, TRUE);
  27. .............
  28.  
  29.  
  30. Source code (so you can remove nag screen) available for $15 Australian
  31.  
  32. pfaulks@zip.com.au
  33.