Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members  

/home/micah/picogui/pg1/client/c/src/dlg_datepicker.c File Reference

#include <stdlib.h>
#include <time.h>
#include "clientlib.h"

Functions

void datepicker_drawmonth (pghandle canvas, pghandle title, int year, int month, int *day, pghandle fHeading, int *firstday, int *numdays)
int pgDatePicker (int *year, int *month, int *day, const char *title)
 Show a date on a calendar, allow the user to select a new date.


Variables

const char * months []
const char * weekdays []

Function Documentation

void datepicker_drawmonth pghandle    canvas,
pghandle    title,
int    year,
int    month,
int *    day,
pghandle    fHeading,
int *    firstday,
int *    numdays
 

int pgDatePicker int *    year,
int *    month,
int *    day,
const char *    title
 

Show a date on a calendar, allow the user to select a new date.

Parameters:
year Initially, the year to display. Returns the selected year
month Initially, the month to display. Returns the selected month
day Initially, the day to display. Returns the selected day
title Title to display in the dialog box
Returns:
Nonzero if a new date was selected, zero if the cancel button was pressed
year, month, and/or day may be zero to use the current date. The year must be fully specified. For example, use 1984 instead of just 84. Of course the dialog is Y2K compliant! On systems with 32-bit time_t, it does not allow years beyond 2037. With a 64-bit time_t this isn't a problem. Months and days are both one-based.

See also:
pgDialogBox


Variable Documentation

const char* months[]
 

Initial value:

 {
  "Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"
}

const char* weekdays[]
 

Initial value:

 {
  "Su","Mo","Tu","We","Th","Fr","Sa"
}


Generated on Fri May 23 03:39:45 2003 for PicoGUI by doxygen1.3-rc3