home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April B / Pcwk4b98.iso / Borland / Dbase50w / SAMPINC.PAK / UTILS.H < prev    next >
Text File  |  1994-08-02  |  1KB  |  53 lines

  1. *******************************************************************************
  2. *  FILE:         Utils.h
  3. *
  4. *  WRITTEN BY:   Borland Samples Group
  5. *
  6. *  DATE:         8/22/93
  7. *
  8. *  UPDATED:      6/94
  9. *
  10. *  REVISION:     $Revision:   1.4  $
  11. *
  12. *  VERSION:      dBASE FOR WINDOWS 5.0
  13. *
  14. *  DESCRIPTION:  Header file for dBASE for Windows samples.
  15. *
  16. *  PARAMETERS:   None
  17. *
  18. *  CALLS:        None
  19. *
  20. *  USAGE:        (in a file)
  21. *                #include <Utils.h>
  22. *
  23. *******************************************************************************
  24.  
  25. *** Various useful macros
  26.  
  27. #define ALLTRIM(s)  ltrim(rtrim(s))
  28. #define TRIMSTR(n)  ltrim(str(n))
  29.  
  30. *** MENUITEM can be used to define menus (dBASE 5.0 for DOS compatibility)
  31.  
  32. #define MENUITEM   MENU
  33.  
  34. *** Flags parameter settings for form/control event handling routines.
  35. *** More than one of these can be on at one time (e.g. you can press ctrl-left
  36. *** mouse button.)   To check if a combination of settings has been selected,
  37. *** use BITAND(setting1,setting2)
  38.  
  39. #define MK_LBUTTON  1
  40. #define MK_RBUTTON  2
  41. #define MK_SHIFT    4
  42. #define MK_CONTROL  8
  43. #define MK_MBUTTON  10
  44.  
  45. *** NType parameter setting for the OnSize event handler of forms
  46.  
  47. #define SIZE_RESTORED   0
  48. #define SIZE_MINIMIZED  1
  49. #define SIZE_MAXIMIZED  2
  50. #define SIZE_MAXSHOW    3
  51. #define SIZE_MAXHIDE    4
  52.  
  53.