Autor Beitrag
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Do 16.02.06 13:11 
Ich hab ein kleines Problemchen. Und zwar funktioniert bei mir die Funktion ClipCursor nicht.
Das einzige was passiert: Die Maus wird beim Start des Programms in das Rect gesetzt, das ich festgelegt habe.
Ich kann die Maus aber trotzdem überall hin bewegen und damit agieren.
Seltsam.

Mach ich vllt irgendwas falsch?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TfrmMain.FormCreate(Sender: TObject);
var MouseRect : TRect;
begin
MouseRect := Rect(500,500,600,600);
ClipCursor(@MouseRect);
end;


gruss daniel
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8535
Erhaltene Danke: 473

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 16.02.06 13:16 
Setz es ins OnActivate der Form - da gehts. Warum es im Create oder auch im Show nicht klappt, weiß ich allerdings auch nicht...

_________________
We are, we were and will not be.
Danny87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Do 16.02.06 13:17 
Danke! Funktioniert!