You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

269 lines
5.3 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. *
  9. *
  10. */
  11. #if !defined( __COMMAND_CODES )
  12. #define __COMMAND_CODES
  13. const ushort
  14. // Standard command codes
  15. cmValid = 0,
  16. cmQuit = 1,
  17. cmError = 2,
  18. cmMenu = 3,
  19. cmClose = 4,
  20. cmZoom = 5,
  21. cmResize = 6,
  22. cmNext = 7,
  23. cmPrev = 8,
  24. cmHelp = 9,
  25. // TDialog standard commands
  26. cmOK = 10,
  27. cmCancel = 11,
  28. cmYes = 12,
  29. cmNo = 13,
  30. cmDefault = 14,
  31. // TView State masks
  32. sfVisible = 0x001,
  33. sfCursorVis = 0x002,
  34. sfCursorIns = 0x004,
  35. sfShadow = 0x008,
  36. sfActive = 0x010,
  37. sfSelected = 0x020,
  38. sfFocused = 0x040,
  39. sfDragging = 0x080,
  40. sfDisabled = 0x100,
  41. sfModal = 0x200,
  42. sfDefault = 0x400,
  43. sfExposed = 0x800,
  44. // TView Option masks
  45. ofSelectable = 0x001,
  46. ofTopSelect = 0x002,
  47. ofFirstClick = 0x004,
  48. ofFramed = 0x008,
  49. ofPreProcess = 0x010,
  50. ofPostProcess = 0x020,
  51. ofBuffered = 0x040,
  52. ofTileable = 0x080,
  53. ofCenterX = 0x100,
  54. ofCenterY = 0x200,
  55. ofCentered = 0x300,
  56. // SET: I added it, it means we want the object to send more broadcast
  57. // than the original TV did. Currently I plan to do it only for a few
  58. // classes and enable it by default, see TCluster as example.
  59. ofBeVerbose = 0x400,
  60. // TView GrowMode masks
  61. gfGrowLoX = 0x01,
  62. gfGrowLoY = 0x02,
  63. gfGrowHiX = 0x04,
  64. gfGrowHiY = 0x08,
  65. gfGrowAll = 0x0f,
  66. gfGrowRel = 0x10,
  67. // TView DragMode masks
  68. dmDragMove = 0x01,
  69. dmDragGrow = 0x02,
  70. dmLimitLoX = 0x10,
  71. dmLimitLoY = 0x20,
  72. dmLimitHiX = 0x40,
  73. dmLimitHiY = 0x80,
  74. dmLimitAll = dmLimitLoX | dmLimitLoY | dmLimitHiX | dmLimitHiY,
  75. // TView Help context codes
  76. hcNoContext = 0,
  77. hcDragging = 1,
  78. // TScrollBar part codes
  79. sbLeftArrow = 0,
  80. sbRightArrow = 1,
  81. sbPageLeft = 2,
  82. sbPageRight = 3,
  83. sbUpArrow = 4,
  84. sbDownArrow = 5,
  85. sbPageUp = 6,
  86. sbPageDown = 7,
  87. sbIndicator = 8,
  88. // TScrollBar options for TWindow.StandardScrollBar
  89. sbHorizontal = 0x000,
  90. sbVertical = 0x001,
  91. sbHandleKeyboard = 0x002,
  92. // TWindow Flags masks
  93. wfMove = 0x01,
  94. wfGrow = 0x02,
  95. wfClose = 0x04,
  96. wfZoom = 0x08,
  97. // TView inhibit flags
  98. noMenuBar = 0x0001,
  99. noDeskTop = 0x0002,
  100. noStatusLine = 0x0004,
  101. noBackground = 0x0008,
  102. noFrame = 0x0010,
  103. noViewer = 0x0020,
  104. noHistory = 0x0040,
  105. // TWindow number constants
  106. wnNoNumber = 0,
  107. // TWindow palette entries
  108. wpBlueWindow = 0,
  109. wpCyanWindow = 1,
  110. wpGrayWindow = 2,
  111. // Application command codes
  112. cmCut = 20,
  113. cmCopy = 21,
  114. cmPaste = 22,
  115. cmUndo = 23,
  116. cmClear = 24,
  117. cmTile = 25,
  118. cmCascade = 26,
  119. // Standard messages
  120. cmReceivedFocus = 50,
  121. cmReleasedFocus = 51,
  122. cmCommandSetChanged = 52,
  123. // TScrollBar messages
  124. cmScrollBarChanged = 53,
  125. cmScrollBarClicked = 54,
  126. // TWindow select messages
  127. cmSelectWindowNum = 55,
  128. // TListViewer messages
  129. cmListItemSelected = 56,
  130. // SET: This is a broadcast that TWindow sends to TProgram::application
  131. // to notify the window is closing. In this way the application can keep
  132. // track of closed windows
  133. cmClosingWindow = 57,
  134. // SET: Usually the owner doesn't have any information about the state of
  135. // your TCluster members. I added this to change the situation so you don't
  136. // need to create a specialized TCluster for it.
  137. // I think that's how an event/message system should work.
  138. cmClusterMovedTo = 58,
  139. cmClusterPress = 59,
  140. // From TButton::press()
  141. cmRecordHistory = 60,
  142. // SET: Here is a broadcast for TListViewer objects. It sends a broadcast
  143. // when an item is focused.
  144. cmListItemFocused = 61,
  145. // SET: Moved here to know they exist
  146. cmGrabDefault = 62,
  147. cmReleaseDefault = 63,
  148. // SET: This is a broadcast sent each time the code page encoding changes.
  149. // All objects that uses non ASCII symbols should remap them.
  150. cmUpdateCodePage = 64,
  151. // SET: The user screen it not always available. This command is disabled in
  152. // this case.
  153. cmCallShell = 65,
  154. // Event masks
  155. positionalEvents = evMouse,
  156. focusedEvents = evKeyboard | evCommand;
  157. #endif // __COMMAND_CODES
  158. #if defined( Uses_TCommandSet )
  159. #include <tv/cmdset.h>
  160. #endif
  161. #if defined( Uses_TPalette )
  162. #include <tv/palette.h>
  163. #endif
  164. #if defined( Uses_TView )
  165. #include <tv/view.h>
  166. #endif
  167. #if defined( Uses_TFrame )
  168. #include <tv/frame.h>
  169. #endif
  170. #if defined( Uses_TScrollBar )
  171. #include <tv/scrlbar.h>
  172. #endif
  173. #if defined( Uses_TScroller )
  174. #include <tv/scroller.h>
  175. #endif
  176. #if defined( Uses_TListViewer )
  177. #include <tv/lstviewr.h>
  178. #endif
  179. #if defined( Uses_TGroup )
  180. #include <tv/group.h>
  181. #endif
  182. #if defined( Uses_TWindow )
  183. #include <tv/window.h>
  184. #endif