mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 11:38:19 +02:00
Added OnMouseEnter, OnMouseLeave property
(code from christer, added by stoppok) git-svn-id: trunk@4 -
This commit is contained in:
parent
db8159bde2
commit
c103f649b3
@ -69,9 +69,43 @@ Begin
|
||||
inherited Click;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TButton.CMMouseEnter
|
||||
Params: None
|
||||
Returns: Nothing
|
||||
|
||||
Handles the event when the button is entered
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TButton.CMMouseEnter(var Message: TMessage);
|
||||
begin
|
||||
Assert(False,'Trace:[TButton.CMMouseEnter]');
|
||||
inherited CMMouseEnter(Message);
|
||||
If assigned(FOnEnter) then
|
||||
FOnEnter(Self);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TButton.CMMouseLeave
|
||||
Params: None
|
||||
Returns: Nothing
|
||||
|
||||
Handles the event when the button Leaves
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TButton.CMMouseLeave(var Message: TMessage);
|
||||
begin
|
||||
Assert(False,'Trace:[TButton.CMMouseLeave]');
|
||||
inherited CMMouseLeave(Message);
|
||||
If assigned(FOnLeave) then
|
||||
FOnLeave(Self);
|
||||
end;
|
||||
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.2 2000/07/16 12:37:52 lazarus
|
||||
Added OnMouseEnter, OnMouseLeave property
|
||||
(code from christer, added by stoppok)
|
||||
|
||||
Revision 1.1 2000/07/13 10:28:24 michael
|
||||
+ Initial import
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user