Einzelnen Beitrag anzeigen

s-off
(Gast)

n/a Beiträge
 
#3

Re: Testen, ob Maus Form verlassen hat

  Alt 25. Apr 2006, 15:04
Hallo,

probiere es einmal mit

Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm1 = class(TForm)
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
    procedure WndProc(var Msg: TMessage); override;
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.WndProc(var Msg: TMessage);
begin
   inherited;
   if Msg.Msg = CM_MOUSELEAVE then begin
      //DO SOMETHING
   end;
end;

end.
  Mit Zitat antworten Zitat