Autor Beitrag
Arbengie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 66



BeitragVerfasst: Sa 25.09.10 13:56 
hi,
ich habe einen button und wenn man mit dem mauszeiger drüber geht, soll sich die caption des button ändern.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
 
procedure TForm1.Button1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
  button1.caption := 'test';
end;


aber wie kann ich nun machen, wenn der mauszeiger NICHT über dem button ist, dass sich die caption des buttons wieder zurückändert, bzw in irgendeine anderen namen?


Moderiert von user profile iconMartok: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Sa 25.09.2010 um 15:08
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Sa 25.09.10 14:06 
Bei den neueren Versionen gibt es das Ereignis OnMouseLeave (ich glaube zumindest, das ist dafür gedacht?).

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
Arbengie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 66



BeitragVerfasst: Sa 25.09.10 14:14 
ah ok, bei button gibts das event nicht. beim label aber schon. naja ok danke^^