| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Tel.: +0351-8012255 =}
- {= Loewenstr.7a = info@swiftsoft.de =}
- {========================================================================}
- {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
- {========================================================================}
- {= This code is for reference purposes only and may not be copied or =}
- {= distributed in any format electronic or otherwise except one copy =}
- {= for backup purposes. =}
- {= =}
- {= No Delphi Component Kit or Component individually or in a collection=}
- {= subclassed or otherwise from the code in this unit, or associated =}
- {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
- {= without express permission from SwiftSoft. =}
- {= =}
- {= For more licence informations please refer to the associated =}
- {= HelpFile. =}
- {========================================================================}
- {= $Date: 20.01.1998 - 18:00:00 $ =}
- {========================================================================}
- unit MMSwitch;
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinTypes,
- WinProcs,
- {$ENDIF}
- SysUtils,
- Messages,
- Classes,
- Graphics,
- Controls,
- Buttons,
- MMUtils,
- MMString,
- MMObj;
- type
- TMMSwitchKind = (skHorizontal, skVertical);
- {-- TMMSwitch ----------------------------------------------------------}
- TMMSwitch = class(TMMCustomControl)
- public
- constructor Create (AOwner : TComponent); override;
- destructor Destroy; override;
- published
- property OnClick;
- property OnDragDrop;
- property OnDragOver;
- property OnEndDrag;
- property OnEnter;
- property OnExit;
- property OnMouseDown;
- property OnMouseMove;
- property OnMouseUp;
- property OnChange: TNotifyEvent read FOnChange write FOnChange;
- property Bevel;
- property Color;
- property Enabled;
- property HelpContext;
- property Hint;
- property ParentColor;
- property ParentShowHint;
- property ShowHint;
- property TabStop default True;
- property TabOrder;
- property Tag;
- property Visible;
- property Width default 1;
- property Height default 1;
- property Kind: TMMSwitchKind read FKind write SetKind;
- property NumPositions: integer read FNumPositions write SetNumPositions;
- property Position: Integer read FPosition write SetPosition;
- property Glyph: TBitmap read FGlyph write SetGlyph;
- property NumGlyphs: TNumGlyphs read FNumGlyphs write SetNumGlyphs;
- end;
- implementation
|