Autor Beitrag
Leathl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: So 02.02.03 20:32 
---


Zuletzt bearbeitet von Leathl am So 16.08.09 12:20, insgesamt 1-mal bearbeitet
Sledge_Hammer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 98 SE, Win XP
D7 Prof
BeitragVerfasst: So 02.02.03 22:59 
ich würde die onmousemove funktion von form1 verwenden. dann koordinaten auswerten (werden bei onmousemove übermittelt) und gegebenenfalls, wenn der mauszeiger über dem label ist, aktion ausführen.
Leathl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: So 02.02.03 23:04 
---


Zuletzt bearbeitet von Leathl am So 16.08.09 12:20, insgesamt 1-mal bearbeitet
Leathl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 03.02.03 20:41 
---


Zuletzt bearbeitet von Leathl am So 16.08.09 12:21, insgesamt 1-mal bearbeitet
Experience1986
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: Mo 14.07.03 16:35 
Titel: Hab dabei ein Prob
Hi,

ich wollte jetzt nicht extra ein Thema auf machen, da ich denke das ihr mir helfen könnt.

Wenn ich per Onmousemove die Koordinaten auswerte (Bei mir ist das ein Panel), bekomme ich trotzdem nicht das ergebniss was ich möchte:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
if (X<=Panel1.Left) or (X>=Panel1.Left+Panel1.Width) or
   (Y<=Panel1.Top) or (Y>=Panel1.Top+Panel1.Height) then
   begin
        Panel1.Color:=clWhite;
   end
else
   begin
        Panel1.Color:=clRed;
   end;



Was mache ich denn Falsch?
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mo 14.07.03 16:45 
Ich hoffe, dass du nicht bei Form1MouseMove darauf wartest, dass du die Maus über das Panel bewegt wird, weil dieses Ereignis nur Auftritt wenn die Maus über dem Formular ist und nicht über dem Panel. Daher wird es immer weiß sein.

Bei Panel1MouseMove sollte es aber funktionieren.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
Experience1986
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: Mo 14.07.03 23:53 
ne, ich hab ja auch von dem Panel das OnMouseMove genommen