| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Fax.: +49 (0)351-8037944 =}
- {= 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: 07.04.98 - 21:08:47 $ =}
- {========================================================================}
- unit MMCtrl;
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinTypes,
- WinProcs,
- {$ENDIF}
- Forms,
- SysUtils,
- Messages,
- Classes,
- Graphics,
- Controls,
- Dialogs,
- ExtCtrls,
- Menus,
- Buttons,
- MMObj,
- MMUtils,
- MMMath,
- MMString,
- MMBmpLst,
- MMObsrv;
- type
- TMMOrientation = (orVertical,orHorizontal);
- TMMGetGylphIndex = procedure(Sender: TObject; IsDown: Boolean; var Index: integer) of object;
- {-- TMMBitmapSlider ---------------------------------------------------------}
- TMMBitmapSlider = class(TMMCustomBitmapListControl)
- public
- constructor Create(AOwner: TComponent); override;
- destructor Destroy; override;
- function ThumbBitmapValid: Boolean;
- property ThumbBitmap: TBitmap read GetThumbBitmap;
- published
- property OnChange: TNotifyEvent read FOnChange write FOnChange;
- property OnTrack: TNotifyEvent read FOnTrack write FOnTrack;
- property OnTrackEnd: TNotifyEvent read FOnTrackEnd write FOnTrackEnd;
- property OnGetGlyphIndex: TMMGetGylphIndex read FOnGetGlyphIndex write FOnGetGlyphIndex;
- property OnGetThumbGlyphIndex: TMMGetGylphIndex read FOnGetThumbGlyphIndex write FOnGetThumbGlyphIndex;
- property Width default 200;
- property Height default 40;
- property Visible;
- property Enabled;
- property ParentShowHint;
- property PopupMenu;
- property ShowHint;
- property TransparentColor;
- property TransparentMode;
- property BitmapList;
- property BitmapIndex;
- property BitmapThumbIndex: Integer read FBitmapThumbIndex write SetBitmapThumbIndex default -1;
- property Margin: integer read FMargin write SetMargin default 2;
- property NumGlyphs: integer read FNumGlyphs write SetNumGlyphs default 1;
- property NumThumbGlyphs: integer read FNumThumbGlyphs write SetNumThumbGlyphs default 1;
- property AutoSize: Boolean read FAutoSize write SetAutoSize default False;
- property HandCursor: Boolean read FHandCursor write FHandCursor default False;
- property ThumbCursor: TCursor read FThumbCursor write FThumbCursor default crDefault;
- property MinValue: Longint read FMin write SetMin default 0;
- property MaxValue: Longint read FMax write SetMax default 10;
- property LineSize: Integer read FLineSize write FLineSize default 1;
- property PageSize: Integer read FPageSize write FPageSize default 5;
- property Orientation: TMMOrientation read FOrientation write SetOrientation default orHorizontal;
- property Position: Longint read GetPosition write SetPosition default 0;
- property Logarithmic: Boolean read FLogMode write SetLogMode default False;
- property Sensitivity: Integer read FSensitivity write SetSensitivity default -24;
- end;
- implementation
|