Autor Beitrag
SockeKC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mo 17.05.04 08:14 
wie kann ich die maus in einer prozedur nach x bzw y verschieben (ohne selbst die griffel dranhaben zu müssen)? quelltext büdde!

Moderiert von user profile iconMotzi: Thema verschoben
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mo 17.05.04 08:19 
Hallo,

mit der WIN-API-Funktion SetCaretPos

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  ...
  x:=10;
  y:=10;
  if (SetCaretPos(x, y)=0) then ShowMessage('Cursor konnte nicht verschoben werden...');
  ...

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 18.05.04 10:56 
Korrigiere: SetCursorPos() ! ;)

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!