day.pp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. (******************************************************************************
  2. *
  3. * Copyright (c) 1994-2000 Palm, Inc. or its subsidiaries.
  4. * All rights reserved.
  5. *
  6. * File: Day.h
  7. *
  8. * Release: Palm OS SDK 4.0 (63220)
  9. *
  10. * Description:
  11. * This file defines the date picker month object's structures
  12. * and routines.
  13. *
  14. * History:
  15. * May 31, 1995 Created by Roger Flores
  16. *
  17. *****************************************************************************)
  18. unit day;
  19. interface
  20. uses palmos, coretraps, rect, datetime, control;
  21. type
  22. SelectDayType = Enum;
  23. const
  24. selectDayByDay = 0; // return d/m/y
  25. selectDayByWeek = 1; // return d/m/y with d as same day of the week
  26. selectDayByMonth = 2; // return d/m/y with d as same day of the month
  27. type
  28. DaySelectorType = record
  29. bounds: RectangleType;
  30. visible: Boolean;
  31. reserved1: UInt8;
  32. visibleMonth: Int16; // month actually displayed
  33. visibleYear: Int16; // year actually displayed
  34. selected: DateTimeType;
  35. selectDayBy: SelectDayType;
  36. reserved2: UInt8;
  37. end;
  38. DaySelectorPtr = ^DaySelectorType;
  39. procedure DayDrawDaySelector(const selectorP: DaySelectorPtr); syscall sysTrapDayDrawDaySelector;
  40. function DayHandleEvent(const selectorP: DaySelectorPtr; const pEvent: EventPtr): Boolean; syscall sysTrapDayHandleEvent;
  41. procedure DayDrawDays(const selectorP: DaySelectorPtr); syscall sysTrapDayDrawDays;
  42. implementation
  43. end.