Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Mo 26.05.03 15:43 
Hallo,
ich habe ein Image auf einer Form erstellt. Wenn nun die Maus über das Bild fährt, soll sich das bild ändern, aber wie?

thx hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Mo 26.05.03 15:51 
Hi,

schreib deinen Code zum Ändern des Bildes in das OnMouseMove-Ereigniss deiner Image-Komponente. Ich glaube da wäre er ganz gut aufgehoben.

MFG

- Ernesto -
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mo 26.05.03 15:51 
Hi!

Dafür musst du einen Nachfahren erstellen, der folgende Prozeduren beinhaltet:

ausblenden Quelltext
1:
2:
procedure MouseEnter(var Message: TMessage); message CM_MOUSEENTER;
procedure MouseLeave(var Message: TMessage); message CM_MOUSELEAVE;


Diese werden aufgerufen, sobald die Maus in das enstsprechende Window kommt bzw. dieses wieder verlässt.

Cu,
Udontknow
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Mo 26.05.03 16:08 
DANKE !! :D

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej