seltime.pp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {$MACRO ON}
  2. (******************************************************************************
  3. *
  4. * Copyright (c) 1994-2000 Palm, Inc. or its subsidiaries.
  5. * All rights reserved.
  6. *
  7. * File: SelTime.h
  8. *
  9. * Release: Palm OS SDK 4.0 (63220)
  10. *
  11. * Description:
  12. * This file defines select time structures and routines.
  13. *
  14. * History:
  15. * December 6, 1994 Created by Roger Flores
  16. * Nick Twyman 8/4/98. Added SelectOneTime trap
  17. *
  18. *****************************************************************************)
  19. unit seltime;
  20. interface
  21. uses palmos, coretraps, datetime;
  22. //-------------------------------------------------------------------
  23. // structures
  24. //-------------------------------------------------------------------
  25. type
  26. HMSTime = record
  27. hours: UInt8;
  28. minutes: UInt8;
  29. seconds: UInt8;
  30. reserved: UInt8;
  31. end;
  32. // This is slated to be deleted in the next version.
  33. function SelectTimeV33(var startTimeP, EndTimeP: TimeType; untimed: Boolean;
  34. const titleP: PChar; startOfDay: Int16): Boolean; syscall sysTrapSelectTimeV33;
  35. function SelectTime(var startTimeP, EndTimeP: TimeType; untimed: Boolean; const titleP: PChar;
  36. startOfDay, endOfDay, startOfDisplay: Int16): Boolean; syscall sysTrapSelectTime;
  37. function SelectOneTime(var hour, minute: Int16; const titleP: PChar): Boolean; syscall sysTrapSelectOneTime;
  38. implementation
  39. end.