Autor Beitrag
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Di 10.02.09 16:23 
HI,

ich such ne Möglichkeit die Cursor-Position auf der Form auszulesen. Ich will das aber nich über OnMouseMove machen. Und mit X := Mouse.CursorPos.X - Form.Left geht das nich, weil ja da die Form-Grenze nicht berücksichtigt wird...
Gibts da ne Funktion für, oder wie geht das?

MfG & Thx Bergmann.

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
LexXis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 170
Erhaltene Danke: 3



BeitragVerfasst: Di 10.02.09 16:27 
Form.ScreenToClient sollte das sein, was du suchst.
Bergmann89 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Di 10.02.09 18:30 
JOP, das hilft...Danke!

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^