MMSPLIT.INT 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  7. {= Loewenstr.7a = info@swiftsoft.de =}
  8. {========================================================================}
  9. {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
  10. {========================================================================}
  11. {= This code is for reference purposes only and may not be copied or =}
  12. {= distributed in any format electronic or otherwise except one copy =}
  13. {= for backup purposes. =}
  14. {= =}
  15. {= No Delphi Component Kit or Component individually or in a collection=}
  16. {= subclassed or otherwise from the code in this unit, or associated =}
  17. {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
  18. {= without express permission from SwiftSoft. =}
  19. {= =}
  20. {= For more licence informations please refer to the associated =}
  21. {= HelpFile. =}
  22. {========================================================================}
  23. {= $Date: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. unit MMSplit;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. {$IFDEF WIN32}
  30. Windows,
  31. {$ELSE}
  32. WinProcs,
  33. WinTypes,
  34. {$ENDIF}
  35. Messages,
  36. SysUtils,
  37. Classes,
  38. Controls,
  39. Forms,
  40. Graphics,
  41. ExtCtrls,
  42. Menus,
  43. DsgnIntf,
  44. MMObj,
  45. MMString,
  46. MMUtils;
  47. type
  48. {-- TMMSplitter -------------------------------------------------------}
  49. TMMSplitter = class(TMMCustomPanel)
  50. public
  51. constructor Create(AOwner: TComponent); override;
  52. published
  53. property OnClick;
  54. property OnDblClick;
  55. property OnDragDrop;
  56. property OnDragOver;
  57. property OnEndDrag;
  58. property OnEnter;
  59. property OnExit;
  60. property OnMouseDown;
  61. property OnMouseMove;
  62. property OnMouseUp;
  63. property OnResize;
  64. {$IFDEF WIN32}
  65. property OnStartDrag;
  66. {$ENDIF}
  67. property Bevel;
  68. property DragCursor;
  69. property DragMode;
  70. property Enabled;
  71. property Color;
  72. property Ctl3D;
  73. property ParentColor;
  74. property ParentCtl3D;
  75. property ParentShowHint;
  76. property PopupMenu;
  77. property ShowHint;
  78. property TabOrder;
  79. property TabStop;
  80. property Visible;
  81. property OnSplit: TMouseMoveEvent read FOnSplit write FOnSplit;
  82. property OnSplitBegin: TNotifyEvent read FOnSplitBegin write FOnSplitBegin;
  83. property OnSplitEnd: TNotifyEvent read FOnSplitEnd write FOnSplitEnd;
  84. property Height default 3;
  85. property Fixed: Boolean read FFixed write SetFixed default False;
  86. property AutoControl: Boolean read FAutoControl write FAutoControl default False;
  87. property MinOffset: integer read FMinOffset write FMinOffset default 0;
  88. property MaxOffset: integer read FMaxOffset write FMaxOffset default 0;
  89. property SplitterSize: integer read FSplitterSize write SetSplitterSize default 4;
  90. property SizeControl: TWinControl read FSizeControl write SetSizeControl;
  91. property DrawSolid: Boolean read FSolid write FSolid default False;
  92. end;
  93. {-- TMMSplitterSizeControlEditor --------------------------------------}
  94. TMMSplitterSizeControlEditor = class(TComponentProperty)
  95. public
  96. procedure GetValues(Proc: TGetStrProc); override;
  97. end;
  98. implementation