| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- {========================================================================}
- {= (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 MMTPanel;
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinTypes,
- WinProcs,
- {$ENDIF}
- SysUtils,
- Messages,
- Classes,
- Graphics,
- Controls,
- Forms,
- Dialogs,
- ExtCtrls,
- Menus,
- MMSystem,
- MMObj,
- MMUtils,
- MMMath,
- MMMulDiv,
- MMRegs,
- MMPCMSup,
- MMPanel;
- type
- TMMZoomChangeEvent = procedure(Sender: TObject; Min, Max: Longint) of Object;
- {-- TMMTimePanel -----------------------------------------------------}
- TMMTimePanel = class(TMMCustomMarkerPanel)
- public
- constructor Create(AOwner: TComponent); override;
- destructor Destroy; override;
- property PWaveFormat: PWaveFormatEx read FPWaveFormat write SetPWaveFormat;
- property GridWidthX;
- property MarkerList;
- published
- property OnClick;
- property OnDblClick;
- property OnMouseDown;
- property OnMouseMove;
- property OnMouseUp;
- property OnResize;
- property OnTrackBegin;
- property OnTrackEnd;
- property OnHelpLocatorChanged;
- property OnLocatorChanged;
- property OnMarkerAChanged;
- property OnMarkerBChanged;
- property OnMarkersChanged;
- property OnRangeChanged;
- property OnGridChanged: TNotifyEvent read FOnGridChanged write FOnGridChanged;
- property OnZooming: TMMZoomChangeEvent read FOnZooming write FOnZooming;
- property OnZoomEnd: TMMZoomChangeEvent read FOnZoomEnd write FOnZoomEnd;
- property Height default 20;
- property Align;
- property Alignment;
- property Bevel;
- property Enabled;
- property Color;
- property Ctl3D;
- property Font;
- property ParentFont;
- property ParentColor;
- property ParentCtl3D;
- property ParentShowHint;
- property PopupMenu;
- property ShowHint;
- property TabOrder;
- property TabStop;
- property Visible;
- property AutoScroll;
- property CorralLocator;
- property UseHelpLocator;
- property UseLocator;
- property UseMarkers;
- property SnapToGrid;
- property SnapRange;
- property HelpLocator;
- property Locator;
- property MarkerA;
- property MarkerB;
- property LocatorColor;
- property MarkerAColor;
- property MarkerBColor;
- property DrawSolid;
- property DrawGriff;
- property RangeMinX;
- property RangeMaxX;
- property DispMinX;
- property DispMaxX;
- property ZoomColor: TColor read FZoomColor write FZoomColor default clYellow;
- property Zoom: Boolean read FZoom write FZoom default True;
- property GridStepsX: integer read FGridStepsX write SetGridStepsX default 2;
- end;
- implementation
|