home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_refer / colors / colors.txt
Text File  |  1994-06-21  |  4KB  |  52 lines

  1. '
  2. ' The following constants can be used to set Access ForeColor, BackColor,
  3. ' or BorderColor properties to match the Windows system colors chosen by
  4. ' the application user.  Constants copied from MS Access online Help.
  5. '
  6. Global Const CLR_DESKTOP&                  = -2147483647 ' Desktop.
  7. Global Const CLR_APPLICATION_WORKSPACE&    = -2147483636 ' Background color of multiple document interface (MDI) applications.
  8. Global Const CLR_WINDOW_BACKGROUND&        = -2147483643 ' Window background.
  9. Global Const CLR_WINDOW_TEXT&              = -2147483640 ' Text in windows.
  10. Global Const CLR_MENU_BAR&                 = -2147483644 ' Menu background.
  11. Global Const CLR_MENU_TEXT&                = -2147483641 ' Text in menus.
  12. Global Const CLR_ACTIVE_TITLE_BAR&         = -2147483646 ' Active window caption.
  13. Global Const CLR_INACTIVE_TITLE_BAR&       = -2147483645 ' Inactive window caption.
  14. Global Const CLR_ACTIVE_TITLE_BAR_TEXT&    = -2147483639 ' Text in caption, size box, scroll-bar arrow box..
  15. Global Const CLR_INACTIVE_TITLE_BAR_TEXT&  = -2147483629
  16. Global Const CLR_ACTIVE_BORDER&            = -2147483638 ' Active window border.
  17. Global Const CLR_INACTIVE_BORDER&          = -2147483637 ' Inactive window border.
  18. Global Const CLR_WINDOW_FRAME&             = -2147483642 ' Window frame.
  19. Global Const CLR_SCROLL_BARS&              = -2147483648 ' Scroll-bars gray area.
  20. Global Const CLR_BUTTON_FACE&              = -2147483633 ' Face shading on command buttons.
  21. Global Const CLR_BUTTON_SHADOW&            = -2147483632 ' Edge shading on command buttons.
  22. Global Const CLR_BUTTON_TEXT&              = -2147483630 ' Text on push buttons.
  23. Global Const CLR_BUTTON_HIGHLIGHT&         = -2147483628
  24. Global Const CLR_DISABLED_TEXT&            = -2147483631 ' Grayed (disabled) text.  This color is set to 0 if the current display driver does not support a solid gray color.
  25. Global Const CLR_HIGHLIGHT&                = -2147483635 ' Items selected item in a control.
  26. Global Const CLR_HIGHLIGHTED_TEXT&         = -2147483634 ' Text of item selected in a control.
  27.  
  28. '
  29. ' Here are the same constants from the MS Visual Basic CONSTANT.TXT file
  30. ' for those who are interested in compatibility with VB. 
  31. '
  32. Global Const SCROLL_BARS           = &H80000000 ' Scroll-bars gray area.
  33. Global Const DESKTOP               = &H80000001 ' Desktop.
  34. Global Const ACTIVE_TITLE_BAR      = &H80000002 ' Active window caption.
  35. Global Const INACTIVE_TITLE_BAR    = &H80000003 ' Inactive window caption.
  36. Global Const MENU_BAR              = &H80000004 ' Menu background.
  37. Global Const WINDOW_BACKGROUND     = &H80000005 ' Window background.
  38. Global Const WINDOW_FRAME          = &H80000006 ' Window frame.
  39. Global Const MENU_TEXT             = &H80000007 ' Text in menus.
  40. Global Const WINDOW_TEXT           = &H80000008 ' Text in windows.
  41. Global Const TITLE_BAR_TEXT        = &H80000009 ' Text in caption, size box, scroll-bar arrow box..
  42. Global Const ACTIVE_BORDER         = &H8000000A ' Active window border.
  43. Global Const INACTIVE_BORDER       = &H8000000B ' Inactive window border.
  44. Global Const APPLICATION_WORKSPACE = &H8000000C ' Background color of multiple document interface (MDI) applications.
  45. Global Const HIGHLIGHT             = &H8000000D ' Items selected item in a control.
  46. Global Const HIGHLIGHT_TEXT        = &H8000000E ' Text of item selected in a control.
  47. Global Const BUTTON_FACE           = &H8000000F ' Face shading on command buttons.
  48. Global Const BUTTON_SHADOW         = &H80000010 ' Edge shading on command buttons.
  49. Global Const GRAY_TEXT             = &H80000011 ' Grayed (disabled) text.  This color is set to 0 if the current display driver does not support a solid gray color.
  50. Global Const BUTTON_TEXT           = &H80000012 ' Text on push buttons.
  51.  
  52.