Autor Beitrag
bogus2k
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25



BeitragVerfasst: Sa 13.03.04 20:48 
ich moechte die maus position angezeigt bekommen dazu benutzte ich onmousemove
allerdings wird die maus position immer nur aktualisiert wenn ich beim bewegen der maus
auch eine taste gedrueckt halt. ist das normal? wie kann ich das abschalten, also so das ich die maustaste nicht zusaetzlich druecken muss?
FatalError
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN ME
D6 Pers
BeitragVerfasst: Sa 13.03.04 22:57 
Hi,

eigentlich sollte es auch so gehen:

Zitat:
Applicationevents einfügen

1.Button in Form einfügen (unter Additional): ApplicationEvents

2. bei "type" einfügen:
ausblenden Delphi-Quelltext
1:
2:
procedure ApplicationEventsMessage(var Msg: tagMSG;
        var Handled: Boolean);


3.procedure erstellen,z.B.:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
 procedure TForm1.ApplicationEventsMessage(var Msg: tagMSG;
  var Handled: Boolean);
   begin
     label1.caption:= inttostr(Msg.pt.x);
   end;


4. und noch ein Klick auf Buttons "appevents",
dann im "Object inspector" unter "Events" bei "OnMessage" einfügen:
"ApplicationEventsMessage".

Die aktuellen x-y-Positionen sind jetzt in Msg.pt.x bzw. Msg.pt.y gespeichert.



Mousemove braucht man dazu nichtmal :wink:

Grüße
Andy
bogus2k Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25



BeitragVerfasst: So 14.03.04 11:28 
geht das nicht auch einfacher?
gibt es nich sowas aenliches wie onmousemove ohne gedrueckte maustaste?
bogus2k Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25



BeitragVerfasst: So 14.03.04 11:44 
hab die antwort,
hab die ganze zeit das onmousemove vom mainform und nicht vom image benutzt
jetzt geht alles, trotzdem danke