Hi there,
I'm trying to make a button which detects when the mouse
is over itself and when it isnt. Now I figured out how to
do that but the compiler says that there is something wrong
with it. Can you please tell me whats wrong because I dont
see it. This is my code :
unit CWMOverOut;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;
type
TCWMOverOut = class(TButton)
protected
procedure MouseOver (var Msg: TMessage);
message cm_mouseEnter;
procedure MouseOut (var Msg: TMessage);
message cm_mouseLeave;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('CWCon', [TCWMOverOut]);
end;
end.
Thanx allot,
BobbaFet Everybody has a right to my opinion.
E-mail me at cwcon@programmer.net
I'm trying to make a button which detects when the mouse
is over itself and when it isnt. Now I figured out how to
do that but the compiler says that there is something wrong
with it. Can you please tell me whats wrong because I dont
see it. This is my code :
unit CWMOverOut;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;
type
TCWMOverOut = class(TButton)
protected
procedure MouseOver (var Msg: TMessage);
message cm_mouseEnter;
procedure MouseOut (var Msg: TMessage);
message cm_mouseLeave;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('CWCon', [TCWMOverOut]);
end;
end.
Thanx allot,
BobbaFet Everybody has a right to my opinion.
E-mail me at cwcon@programmer.net