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


Delphi 6 Ent
BeitragVerfasst: Do 09.09.04 09:59 
Hallo,

Mit GetCursorPos kann man ja die aktuelle Position der Maus erfragen.
Wenn ich aber jetzt meine Anwendung verschiebe, dann stimmen ja die alten Koordinaten nicht mehr.
Wie kann ich also die Position im aktuellen Fenster ermitteln ? ´

gruss
Markus
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 09.09.04 10:08 
Schau dir mal die Methode ScreenToClient an..

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


Delphi 6 Ent
BeitragVerfasst: Do 09.09.04 10:38 
Mann Mann,
manchmal macht man es sich viel zu kopliziert...
Warum nicht einfach ein mousedown nehmen ?
Komme aus dem PHP/MySql Bereich und macnhmal sind diese Visuellen Möglichkeiten überweltigend :D
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 09.09.04 10:40 
So gehts natürlich auch..! ;)

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



BeitragVerfasst: Do 09.09.04 14:40 
MSDevelop hat folgendes geschrieben:
Komme aus dem PHP/MySql Bereich

Willkommen bei Delphi, deiner ersten Programmiersprache! :twisted:

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!