ButtonConstants.au3 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #include-once
  2. ; #INDEX# =======================================================================================================================
  3. ; Title .........: Button_Constants
  4. ; AutoIt Version : 3.3.14.5
  5. ; Language ......: English
  6. ; Description ...: Constants for <a href="../appendix/GUIStyles.htm#Button">GUI control Button styles</a> and Group, Radio, Checkbox.
  7. ; Author(s) .....: Valik
  8. ; ===============================================================================================================================
  9. ; #CONSTANTS# ===================================================================================================================
  10. ; Group
  11. Global Const $BS_GROUPBOX = 0x0007
  12. ; Button
  13. Global Const $BS_BOTTOM = 0x0800
  14. Global Const $BS_CENTER = 0x0300
  15. Global Const $BS_DEFPUSHBUTTON = 0x0001
  16. Global Const $BS_LEFT = 0x0100
  17. Global Const $BS_MULTILINE = 0x2000
  18. Global Const $BS_PUSHBOX = 0x000A
  19. Global Const $BS_PUSHLIKE = 0x1000
  20. Global Const $BS_RIGHT = 0x0200
  21. Global Const $BS_RIGHTBUTTON = 0x0020
  22. Global Const $BS_TOP = 0x0400
  23. Global Const $BS_VCENTER = 0x0C00
  24. Global Const $BS_FLAT = 0x8000
  25. Global Const $BS_ICON = 0x0040
  26. Global Const $BS_BITMAP = 0x0080
  27. Global Const $BS_NOTIFY = 0x4000
  28. ; Vista
  29. Global Const $BS_SPLITBUTTON = 0x0000000C
  30. Global Const $BS_DEFSPLITBUTTON = 0x0000000D
  31. Global Const $BS_COMMANDLINK = 0x0000000E
  32. Global Const $BS_DEFCOMMANDLINK = 0x0000000F
  33. ; Vista SPLIT BUTTON INFO mask flags
  34. Global Const $BCSIF_GLYPH = 0x0001
  35. Global Const $BCSIF_IMAGE = 0x0002
  36. Global Const $BCSIF_STYLE = 0x0004
  37. Global Const $BCSIF_SIZE = 0x0008
  38. ; Vista SPLIT BUTTON STYLE flags
  39. Global Const $BCSS_NOSPLIT = 0x0001
  40. Global Const $BCSS_STRETCH = 0x0002
  41. Global Const $BCSS_ALIGNLEFT = 0x0004
  42. Global Const $BCSS_IMAGE = 0x0008
  43. Global Const $BUTTON_IMAGELIST_ALIGN_LEFT = 0
  44. Global Const $BUTTON_IMAGELIST_ALIGN_RIGHT = 1
  45. Global Const $BUTTON_IMAGELIST_ALIGN_TOP = 2
  46. Global Const $BUTTON_IMAGELIST_ALIGN_BOTTOM = 3
  47. Global Const $BUTTON_IMAGELIST_ALIGN_CENTER = 4 ; Doesn't draw text
  48. ; Checkbox
  49. Global Const $BS_3STATE = 0x0005
  50. Global Const $BS_AUTO3STATE = 0x0006
  51. Global Const $BS_AUTOCHECKBOX = 0x0003
  52. Global Const $BS_CHECKBOX = 0x0002
  53. ; Radio
  54. Global Const $BS_RADIOBUTTON = 0x4
  55. Global Const $BS_AUTORADIOBUTTON = 0x0009
  56. Global Const $BS_OWNERDRAW = 0xB
  57. ; Control default styles
  58. Global Const $GUI_SS_DEFAULT_BUTTON = 0
  59. Global Const $GUI_SS_DEFAULT_CHECKBOX = 0
  60. Global Const $GUI_SS_DEFAULT_GROUP = 0
  61. Global Const $GUI_SS_DEFAULT_RADIO = 0
  62. ; Messages
  63. Global Const $BCM_FIRST = 0x1600
  64. Global Const $BCM_GETIDEALSIZE = ($BCM_FIRST + 0x0001)
  65. Global Const $BCM_GETIMAGELIST = ($BCM_FIRST + 0x0003)
  66. Global Const $BCM_GETNOTE = ($BCM_FIRST + 0x000A)
  67. Global Const $BCM_GETNOTELENGTH = ($BCM_FIRST + 0x000B)
  68. Global Const $BCM_GETSPLITINFO = ($BCM_FIRST + 0x0008)
  69. Global Const $BCM_GETTEXTMARGIN = ($BCM_FIRST + 0x0005)
  70. Global Const $BCM_SETDROPDOWNSTATE = ($BCM_FIRST + 0x0006)
  71. Global Const $BCM_SETIMAGELIST = ($BCM_FIRST + 0x0002)
  72. Global Const $BCM_SETNOTE = ($BCM_FIRST + 0x0009)
  73. Global Const $BCM_SETSHIELD = ($BCM_FIRST + 0x000C)
  74. Global Const $BCM_SETSPLITINFO = ($BCM_FIRST + 0x0007)
  75. Global Const $BCM_SETTEXTMARGIN = ($BCM_FIRST + 0x0004)
  76. Global Const $BM_CLICK = 0xF5
  77. Global Const $BM_GETCHECK = 0xF0
  78. Global Const $BM_GETIMAGE = 0xF6
  79. Global Const $BM_GETSTATE = 0xF2
  80. Global Const $BM_SETCHECK = 0xF1
  81. Global Const $BM_SETDONTCLICK = 0xF8
  82. Global Const $BM_SETIMAGE = 0xF7
  83. Global Const $BM_SETSTATE = 0xF3
  84. Global Const $BM_SETSTYLE = 0xF4
  85. ; Notifications
  86. Global Const $BCN_FIRST = -1250
  87. Global Const $BCN_DROPDOWN = ($BCN_FIRST + 0x0002)
  88. Global Const $BCN_HOTITEMCHANGE = ($BCN_FIRST + 0x0001)
  89. Global Const $BN_CLICKED = 0
  90. Global Const $BN_PAINT = 1
  91. Global Const $BN_HILITE = 2
  92. Global Const $BN_UNHILITE = 3
  93. Global Const $BN_DISABLE = 4
  94. Global Const $BN_DOUBLECLICKED = 5
  95. Global Const $BN_SETFOCUS = 6
  96. Global Const $BN_KILLFOCUS = 7
  97. Global Const $BN_PUSHED = $BN_HILITE
  98. Global Const $BN_UNPUSHED = $BN_UNHILITE
  99. Global Const $BN_DBLCLK = $BN_DOUBLECLICKED
  100. ; check states
  101. Global Const $BST_CHECKED = 0x1
  102. Global Const $BST_INDETERMINATE = 0x2
  103. Global Const $BST_UNCHECKED = 0x0
  104. Global Const $BST_FOCUS = 0x8
  105. Global Const $BST_PUSHED = 0x4
  106. Global Const $BST_DONTCLICK = 0x000080
  107. ; ===============================================================================================================================