MMCHECK.INT 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Fax.: +49 (0)351-8037944 =}
  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: 31.03.98 - 17:56:55 $ =}
  24. {========================================================================}
  25. unit MMCheck;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. Windows,
  30. Messages,
  31. SysUtils,
  32. Classes,
  33. Graphics,
  34. Controls,
  35. Forms,
  36. Dialogs,
  37. StdCtrls,
  38. Buttons,
  39. MMObj,
  40. MMUtils,
  41. MMBmpLst,
  42. MMObsrv;
  43. type
  44. TMargin = 1..25;
  45. TMMFontStyle = class(TPersistent)
  46. public
  47. property Parent: TControl read FParent write FParent;
  48. published
  49. property Color: TColor read FColor write SetColor;
  50. property Style: TFontStyles read FStyle write SetStyle;
  51. end;
  52. {-- TMMBitmapRadioButton ----------------------------------------------------}
  53. TMMBitmapRadioButton = class(TMMCustomBitmapListControl)
  54. public
  55. constructor Create(AOwner: TComponent); override;
  56. destructor Destroy; override;
  57. published
  58. property OnClick;
  59. property OnDblClick;
  60. property OnDragDrop;
  61. property OnDragOver;
  62. property OnEndDrag;
  63. property OnMouseDown;
  64. property OnMouseMove;
  65. property OnMouseUp;
  66. property OnStartDrag;
  67. property Caption;
  68. property Color;
  69. property DragCursor;
  70. property DragMode;
  71. property Enabled;
  72. property Font;
  73. property ParentColor;
  74. property ParentFont;
  75. property ParentShowHint;
  76. property PopupMenu;
  77. property ShowHint;
  78. property Visible;
  79. property Transparent default True;
  80. property TransparentColor;
  81. property TransparentMode;
  82. property BitmapList;
  83. property BitmapIndex;
  84. property AllowMouseOver: Boolean read FMouseOver write FMouseOver default False;
  85. property FontActive: TMMFontStyle read FFontActive write FFontActive;
  86. property FontInactive: TMMFontStyle read FFontInactive write FFontInactive;
  87. property Alignment: TLeftRight read FAlignment write SetAlignment default taLeftJustify;
  88. property Checked: boolean read FChecked write SetChecked default false;
  89. property Margin: TMargin read FMargin write SetMargin default 7;
  90. property NumGlyphs: TNumGlyphs read FNumGlyphs write SetNumGlyphs default 4;
  91. end;
  92. {-- TMMBitmapCheckBox -------------------------------------------------------}
  93. TMMBitmapCheckBox = class(TMMCustomBitmapListControl)
  94. public
  95. constructor Create(AOwner: TComponent); override;
  96. destructor Destroy; override;
  97. published
  98. property OnClick;
  99. property OnDragDrop;
  100. property OnDragOver;
  101. property OnEndDrag;
  102. property OnMouseDown;
  103. property OnMouseMove;
  104. property OnMouseUp;
  105. property OnStartDrag;
  106. property Caption;
  107. property Color;
  108. property DragCursor;
  109. property DragMode;
  110. property Enabled;
  111. property Font;
  112. property Hint;
  113. property ParentColor;
  114. property ParentFont;
  115. property ParentShowHint;
  116. property PopupMenu;
  117. property ShowHint;
  118. property Visible;
  119. property Transparent default True;
  120. property TransparentColor;
  121. property TransparentMode;
  122. property BitmapList;
  123. property BitmapIndex;
  124. property AllowMouseOver: Boolean read FMouseOver write FMouseOver default False;
  125. property FontActive: TMMFontStyle read FFontActive write FFontActive;
  126. property FontInactive: TMMFontStyle read FFontInactive write FFontInactive;
  127. property Alignment: TLeftRight read FAlignment write SetAlignment default taLeftJustify;
  128. property AllowGrayed: Boolean read FAllowGrayed write SetAllowGrayed default False;
  129. property Checked: Boolean read FChecked write SetChecked default False;
  130. property State: TCheckBoxState read FState write SetState default cbUnchecked;
  131. property Margin: TMargin read FMargin write SetMargin default 7;
  132. property NumGlyphs: TNumGlyphs read FNumGlyphs write SetNumGlyphs default 4;
  133. end;
  134. implementation