EditConstants.au3 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #include-once
  2. ; #INDEX# =======================================================================================================================
  3. ; Title .........: Edit_Constants
  4. ; AutoIt Version : 3.3.14.5
  5. ; Language ......: English
  6. ; Description ...: <a href="../appendix/GUIStyles.htm#Edit">GUI control Edit/Input styles</a> and much more constants.
  7. ; Author(s) .....: Valik, Gary Frost, ...
  8. ; ===============================================================================================================================
  9. ; #CONSTANTS# ===================================================================================================================
  10. ; Styles
  11. Global Const $ES_LEFT = 0
  12. Global Const $ES_CENTER = 1
  13. Global Const $ES_RIGHT = 2
  14. Global Const $ES_MULTILINE = 4
  15. Global Const $ES_UPPERCASE = 8
  16. Global Const $ES_LOWERCASE = 16
  17. Global Const $ES_PASSWORD = 32
  18. Global Const $ES_AUTOVSCROLL = 64
  19. Global Const $ES_AUTOHSCROLL = 128
  20. Global Const $ES_NOHIDESEL = 256
  21. Global Const $ES_OEMCONVERT = 1024
  22. Global Const $ES_READONLY = 2048
  23. Global Const $ES_WANTRETURN = 4096
  24. Global Const $ES_NUMBER = 8192
  25. ; Global Const $ES_DISABLENOSCROLL = 8192
  26. ; Global Const $ES_SUNKEN = 16384
  27. ; Global Const $ES_VERTICAL = 4194304
  28. ; Global Const $ES_SELECTIONBAR = 16777216
  29. ; Error checking
  30. Global Const $EC_ERR = -1
  31. ; Messages to send to edit control
  32. Global Const $ECM_FIRST = 0X1500
  33. Global Const $EM_CANUNDO = 0xC6
  34. Global Const $EM_CHARFROMPOS = 0xD7
  35. Global Const $EM_EMPTYUNDOBUFFER = 0xCD
  36. Global Const $EM_FMTLINES = 0xC8
  37. Global Const $EM_GETCUEBANNER = ($ECM_FIRST + 2)
  38. Global Const $EM_GETFIRSTVISIBLELINE = 0xCE
  39. Global Const $EM_GETHANDLE = 0xBD
  40. Global Const $EM_GETIMESTATUS = 0xD9
  41. Global Const $EM_GETLIMITTEXT = 0xD5
  42. Global Const $EM_GETLINE = 0xC4
  43. Global Const $EM_GETLINECOUNT = 0xBA
  44. Global Const $EM_GETMARGINS = 0xD4
  45. Global Const $EM_GETMODIFY = 0xB8
  46. Global Const $EM_GETPASSWORDCHAR = 0xD2
  47. Global Const $EM_GETRECT = 0xB2
  48. Global Const $EM_GETSEL = 0xB0
  49. Global Const $EM_GETTHUMB = 0xBE
  50. Global Const $EM_GETWORDBREAKPROC = 0xD1
  51. Global Const $EM_HIDEBALLOONTIP = ($ECM_FIRST + 4)
  52. Global Const $EM_LIMITTEXT = 0xC5
  53. Global Const $EM_LINEFROMCHAR = 0xC9
  54. Global Const $EM_LINEINDEX = 0xBB
  55. Global Const $EM_LINELENGTH = 0xC1
  56. Global Const $EM_LINESCROLL = 0xB6
  57. Global Const $EM_POSFROMCHAR = 0xD6
  58. Global Const $EM_REPLACESEL = 0xC2
  59. Global Const $EM_SCROLL = 0xB5
  60. Global Const $EM_SCROLLCARET = 0x00B7
  61. Global Const $EM_SETCUEBANNER = ($ECM_FIRST + 1)
  62. Global Const $EM_SETHANDLE = 0xBC
  63. Global Const $EM_SETIMESTATUS = 0xD8
  64. Global Const $EM_SETLIMITTEXT = $EM_LIMITTEXT
  65. Global Const $EM_SETMARGINS = 0xD3
  66. Global Const $EM_SETMODIFY = 0xB9
  67. Global Const $EM_SETPASSWORDCHAR = 0xCC
  68. Global Const $EM_SETREADONLY = 0xCF
  69. Global Const $EM_SETRECT = 0xB3
  70. Global Const $EM_SETRECTNP = 0xB4
  71. Global Const $EM_SETSEL = 0xB1
  72. Global Const $EM_SETTABSTOPS = 0xCB
  73. Global Const $EM_SETWORDBREAKPROC = 0xD0
  74. Global Const $EM_SHOWBALLOONTIP = ($ECM_FIRST + 3)
  75. Global Const $EM_UNDO = 0xC7
  76. ; Params
  77. Global Const $EC_LEFTMARGIN = 0x1
  78. Global Const $EC_RIGHTMARGIN = 0x2
  79. Global Const $EC_USEFONTINFO = 0xFFFF
  80. Global Const $EMSIS_COMPOSITIONSTRING = 0x1
  81. ; Status
  82. Global Const $EIMES_GETCOMPSTRATONCE = 0x1 ; If this flag is set, the edit control hooks the WM_IME_COMPOSITION message with fFlags set to GCS_RESULTSTR and returns the result string immediately
  83. Global Const $EIMES_CANCELCOMPSTRINFOCUS = 0x2 ; If this flag is set, the edit control cancels the composition string when it receives the WM_SETFOCUS message.
  84. Global Const $EIMES_COMPLETECOMPSTRKILLFOCUS = 0x4 ; If this flag is set, the edit control completes the composition string upon receiving the WM_KILLFOCUS message.
  85. ; Notifications
  86. Global Const $EN_ALIGN_LTR_EC = 0x700
  87. Global Const $EN_ALIGN_RTL_EC = 0x701
  88. Global Const $EN_CHANGE = 0x300
  89. Global Const $EN_ERRSPACE = 0x500
  90. Global Const $EN_HSCROLL = 0X601
  91. Global Const $EN_KILLFOCUS = 0x200
  92. Global Const $EN_MAXTEXT = 0x501
  93. Global Const $EN_SETFOCUS = 0x100
  94. Global Const $EN_UPDATE = 0x400
  95. Global Const $EN_VSCROLL = 0x602
  96. ; Edit Balloon Tool Tip Icons
  97. ; move in ToolTipConstants.au3
  98. ; Global Const $TTI_NONE = 0
  99. ; Global Const $TTI_INFO = 1
  100. ; Global Const $TTI_WARNING = 2
  101. ; Global Const $TTI_ERROR = 3
  102. ; Vista Edit Balloon Tool Tip Icons
  103. ; Global Const $TTI_INFO_LARGE = 4
  104. ; Global Const $TTI_WARNING_LARGE = 5
  105. ; Global Const $TTI_ERROR_LARGE = 6
  106. ; Control default styles
  107. Global Const $GUI_SS_DEFAULT_EDIT = 0x003010c0 ; BitOR($ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL)
  108. Global Const $GUI_SS_DEFAULT_INPUT = 0x00000080 ; BitOR($ES_LEFT, $ES_AUTOHSCROLL)
  109. ; ===============================================================================================================================