MMSWITCH.INT 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 MMSwitch;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. {$IFDEF WIN32}
  30. Windows,
  31. {$ELSE}
  32. WinTypes,
  33. WinProcs,
  34. {$ENDIF}
  35. SysUtils,
  36. Messages,
  37. Classes,
  38. Graphics,
  39. Controls,
  40. Buttons,
  41. MMUtils,
  42. MMString,
  43. MMObj;
  44. type
  45. TMMSwitchKind = (skHorizontal, skVertical);
  46. {-- TMMSwitch ----------------------------------------------------------}
  47. TMMSwitch = class(TMMCustomControl)
  48. public
  49. constructor Create (AOwner : TComponent); override;
  50. destructor Destroy; override;
  51. published
  52. property OnClick;
  53. property OnDragDrop;
  54. property OnDragOver;
  55. property OnEndDrag;
  56. property OnEnter;
  57. property OnExit;
  58. property OnMouseDown;
  59. property OnMouseMove;
  60. property OnMouseUp;
  61. property OnChange: TNotifyEvent read FOnChange write FOnChange;
  62. property Bevel;
  63. property Color;
  64. property Enabled;
  65. property HelpContext;
  66. property Hint;
  67. property ParentColor;
  68. property ParentShowHint;
  69. property ShowHint;
  70. property TabStop default True;
  71. property TabOrder;
  72. property Tag;
  73. property Visible;
  74. property Width default 1;
  75. property Height default 1;
  76. property Kind: TMMSwitchKind read FKind write SetKind;
  77. property NumPositions: integer read FNumPositions write SetNumPositions;
  78. property Position: Integer read FPosition write SetPosition;
  79. property Glyph: TBitmap read FGlyph write SetGlyph;
  80. property NumGlyphs: TNumGlyphs read FNumGlyphs write SetNumGlyphs;
  81. end;
  82. implementation