jvplgintf.pas
来自「Jedi Code Library JCL JVCL 组件包 JCL+JVCL超」· PAS 代码 · 共 39 行
PAS
39 行
unit JvPlgIntf;
// holding interfaces for plugins and main application
// remember to always produce unique GUIDs (Ctrl+Shift+G) - never reuse them after changes
interface
uses Classes;
// A common interface for all plugins
type
IMyPluginInterface = interface
['{A7F68489-2B52-4E59-B5E8-2044C7F67C09}']
procedure ShowPlug(Sender: TObject);
// ...
end;
// if plugins shall be able to access the mainapplication,
// an interface for the main application should be defined as well
type
IMyMainAppInterface = interface
['{00D251C6-8D61-43F7-88F8-35F7F7EC364D}']
procedure DoSomethingSpecial(Name: string; OnClick: TNotifyEvent);
// this way properties can be used:
// function GetECGPos : double;
// Procedure SetECGPos(const NewPos : double);
// property ECGPos : double read GetECGPos write SetECGPos;
end;
implementation
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?