Autor Beitrag
PhilGo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: Mo 05.04.04 18:58 
Hallo alle zusammen.

Also ich hab ein Problem, die jeder mal hat oder hatte:

Wenn in meinem Programm die Maus über ein Button fährt(onMouseMove), dann leuchtet der Text andersfarbig. Verlässt die Maus wieder das Button, dann wird die Farbe wieder zurückgesetzt(bei onMouseMove auf anderen Fläche des Formulars).
Mein Problem: Wenn ich die Maus zu schnell auserhalb des Programms scrolle, dann bleib die Farbe.


Mfg PhilGo

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!
tmc2004
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

zuviele
D7,D8
BeitragVerfasst: Di 06.04.04 13:01 
Da kommt mir nur eine dumme idee mit einen timer, aber ist nicht wirklich schön. Ist die Maus noch innerhalb deines Programms wenn sie den Bildschirm verläst?

Gruß
tmc

_________________
it's not a bug it's a feature
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 06.04.04 14:03 
Ich empfehle dir eine neue Komponente zu erstellen die du von TButton ableitest (wenn du willst auch TCustomButton) und dann zwei neue Events OnMouseEnter und OnMouseLeave einbaust die du über die beiden Messages Suche in: Delphi-Forum, Delphi-Library CM_MOUSEENTER und Suche in: Delphi-Forum, Delphi-Library CM_MOUSELEAVE realisieren kannst..!

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
PhilGo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 315

Win 98, Win Longhorn ;-)

BeitragVerfasst: Di 06.04.04 15:46 
@tmc2004: Mein Programm geht nicht über den ganzen Bildschirm.

@Motzi: Ich werde mal sehen was sich machen lässt.


Außerdem: Ich hab ne neue Freeware> PG Shote 1.05 <


Mfg PhilGo

_________________
Sie werden dich finden und töten... Söhne der großen Bärin!