Autor Beitrag
stratege15
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Di 11.11.03 18:45 
wie kann man am einfachsten die cursor-position ändern?

Moderiert von user profile iconTino: Titel geändert.
Pascal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 155

Win 98, Win XP
Delphi 2005, Delphi 5
BeitragVerfasst: Di 11.11.03 19:13 
Wenn du mit Cursor die Maus meinst würde ich das so machen:
ausblenden Delphi-Quelltext
1:
2:
mouse.cursorpos.x:=neuer Wert
mouse.cursorpos.y:=neuer Wert

wenn nicht dann sag welchen Cursor du meinst (in einem Memofeld?)

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
stratege15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Di 11.11.03 19:27 
ja .. ich mein damit die maus ..
genau das was du mir vorgeschlagen hast geht ja nicht .. diesen wert kann man nicht ändern (Compiler: der linken seite kann nichts zugewiesen werden). deshalb hab ich ja diesen thread eröffnet um die funktion zum ändern der maus-cursor-position herauszufinden :)
stratege15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58



BeitragVerfasst: Di 11.11.03 22:12 
ah habs schon gefunden ...
ausblenden Quelltext
1:
setcursorpos(x,y: integer);					
Pascal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 155

Win 98, Win XP
Delphi 2005, Delphi 5
BeitragVerfasst: Mi 12.11.03 17:02 
Ah ja ich meinte eigentlich mouse.cursorpos:=point(x,y);
Ich wusste, dass eine der beiden Methoden nicht geht, dachte aber das wäre die andere,...
Alexander F
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 149

Win XP, Win 2000
D6 PE, D7 Prof, D8 Prof
BeitragVerfasst: Fr 14.11.03 18:57 
Wenn du zusätzlich mit Kylix arbeitest, würde ich SetCursorPos nicht verwenden, da es eine WinAPI-Funktion ist, sie funktioniert also nur unter Windows...