Autor Beitrag
wunsiedler
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 506
Erhaltene Danke: 4

Win7

BeitragVerfasst: Mo 30.08.04 12:42 
Hallo,

wie bekomme ich die Koordinaten des Mauszeigers, wenn ich auf die Form klicke.

z.b. klicke ich auf eine form von 800 x 800 pixeln genau in die Mitte und hätte jetzt gern x=400, y=400

danke
MathiasH
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 699

WinXP, Win98SE, Debian, Win95
D5 Stand, D6 Prof
BeitragVerfasst: Mo 30.08.04 13:33 
Hallo

guck dir mal form1.OnMouseUp an, da werden x und y der Maus mitgeschickt, natürlich relativ zur oberen ecke des Fensters

MathiasH

_________________
"Viel von sich reden, kann auch ein Mittel sein, sich zu verbergen."
Friedrich Nietzsche
wunsiedler Threadstarter
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 506
Erhaltene Danke: 4

Win7

BeitragVerfasst: Mo 30.08.04 13:35 
....und genauso was brauch ich.. Danke
wunsiedler Threadstarter
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 506
Erhaltene Danke: 4

Win7

BeitragVerfasst: Mo 18.10.04 15:20 
...und wie bekomme ich die Koordinaten des Mauszeigers in Abhängigkeit von der oberen linken Ecke des Bildschirmes?
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mo 18.10.04 15:51 
mit ClientToScreen umwandeln bzw GetCursorPos benutzen :D

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)