Autor Beitrag
Mindforce
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 358

Win XP Pro / MCE, Win 98, Slax (Linux)
Delphi 07 PRO, Delphi 3+7 (mit Prdx)
BeitragVerfasst: Sa 28.10.06 16:31 
Hi,

ich hab da mal wieder ein Problem!
Ich möchte gerne unten in einer Statusbar die Mausposition angezeigt bekommen.
Vom anfang des Formulars "0 X , 0 Y" bis zum ende "* X , *Y"

Die Funktion
ausblenden Delphi-Quelltext
1:
2:
Mouse.CursorPos.X;
Mouse.CursorPos.Y;

zeigt nur die Insgesammtgrösse des ganzen Bildschrims...
Aber ich möchte NUR die Positionen INERHALB der Form haben.

PLZ helft mir :cry:

M!ndforce

_________________
Our force; in mind.
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 28.10.06 16:51 
ausblenden Delphi-Quelltext
1:
Label1.Caption := IntToStr(ScreenToClient(Mouse.CursorPos).X);					


MfG
Mindforce Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 358

Win XP Pro / MCE, Win 98, Slax (Linux)
Delphi 07 PRO, Delphi 3+7 (mit Prdx)
BeitragVerfasst: Sa 28.10.06 16:53 
Cool. Geht gut!!!
Ich kann ja das "-" abregeln. THX!!!

_________________
Our force; in mind.