{========================================================================} {= (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 MMTrMix; {$I COMPILER.INC} interface uses SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Menus, MMObj, MMDIBCv, MMUtils, MMPanel, MMSlider, MMWheel, MMButton, MMLevel, MMLEDS; const defMaxVolume= 2*VOLUMEBASE; defVolume = VOLUMEBASE; defPanning = 0; defMuted = False; defTitle = 'untitled'; type {-- TMMTrackMixPanel ------------------------------------------------------} TMMTrackMixPanel = class(TMMCustomPanel) public constructor Create(aOwner: TComponent);override; destructor Destroy; override; procedure ResetPeak; published property OnChange: TNotifyEvent read FOnChange write FOnChange; property Align; property Bevel; property PopupMenu; property TabOrder; property Color; property ParentColor; property Volume: Longint index 0 read FVolume write SetLongints; property Panning: Longint index 1 read FPanning write SetLongints; property Muted: Boolean index 0 read FMuted write SetBoolean; property Title: string read FTitle write SetTitle; property Peak: integer read FPeak write SetPeak; end; procedure DrawLevelBar(Sender: TObject; DIB: TMMDIBCanvas; R: TRect; aValue,aPeak: integer); implementation