我做了一个测试,是可以的,代码如下:
unit uWQBevel;
interface
uses
SysUtils, Classes, Controls, ExtCtrls;
type
TWQBevel = class(TBevel)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
property OnMouseDown;
property OnMouseMove;
property OnMouseUp;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Seven', [TWQBevel]);
end;
end.