Autor Beitrag
jackie05
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 357



BeitragVerfasst: Do 05.02.09 16:22 
Hallo,
wie kann ich auf meiner Form die Scroll Position des Maus anzeigen?

Die Scroll Position soll, wenn es grösser wie 9 ist, wieder auf 1 gesetzt werden.

Ich danke euch schonmal für die Hilfe.

MfG
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19341
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 05.02.09 16:26 
Wie meinst du das? Wo scrollst du? Also in welcher Komponente?

Die Maus selbst kennt nur um eine bestimmte Anzahl Ticks nach oben oder unten scrollen, hat aber keine Informationen über die Position basierend auf vergangenen Scrolls.
jackie05 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 357



BeitragVerfasst: Do 05.02.09 16:55 
Ich benutze die Komponent TDXDraw, für ein 2D Spiel.
Ich möchte einfach, wenn man mit der Maus auf diese Komponent Scrollt, das die Scroll Position von 1-9 angezeigt wird, wenn ich jetzt z.B. hoch Scrolle, dann soll die Scroll Position wieder auf 1 gesetzt werden, wenn es grösser wie 9 ist.

Danke schonmal.

MfG