📄 mmrvbprp.pas
字号:
{========================================================================}
{= (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 MMRvbPrp;
{$I COMPILER.INC}
interface
uses
{$IFDEF WIN32}
Windows,
{$ELSE}
WinTypes,
WinProcs,
{$ENDIF}
{$IFDEF DELPHI6}
DesignIntf,
DesignEditors,
{$ELSE}
DsgnIntf,
{$ENDIF}
SysUtils,
Messages,
Consts,
Classes,
Dialogs,
StdCtrls,
Controls,
MMReverb,
MMRvbDlg;
type
{-- TMMEchoProperty ---------------------------------------------------}
TMMEchoProperty = class(TClassProperty)
public
procedure Edit; override;
function GetAttributes: TPropertyAttributes; override;
end;
{-- TMMReverbEditor ---------------------------------------------------}
TMMReverbEditor = class(TComponentEditor)
public
procedure ExecuteVerb(Index: Integer); override;
function GetVerb(Index: Integer): string; override;
function GetVerbCount: Integer; override;
end;
implementation
{== TMMEchoProperty =====================================================}
function TMMEchoProperty.GetAttributes: TPropertyAttributes;
begin
Result := [paDialog];
end;
{-- TMMEchoProperty -----------------------------------------------------}
procedure TMMEchoProperty.Edit;
begin
with TMMReverbDialog.Create(nil) do
try
Preview := False;
Source := (GetComponent(0) as TMMReverb);
if Execute and (Designer <> nil) then Designer.Modified;
finally
Free;
end;
end;
{== TMMReverbEditor =====================================================}
procedure TMMReverbEditor.ExecuteVerb(Index: Integer);
begin
with TMMReverbDialog.Create(nil) do
try
Preview := False;
Source := (Component as TMMReverb);
if Execute and (Designer <> nil) then Designer.Modified;
finally
Free;
end;
end;
{-- TMMReverbEditor -----------------------------------------------------}
function TMMReverbEditor.GetVerb(Index: Integer): string;
begin
Result := 'Reverb Editor...';
end;
{-- TMMReverbEditor ---------------------------------------------------}
function TMMReverbEditor.GetVerbCount: Integer;
begin
Result := 1;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -