Autor Beitrag
knuffel
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 68

WIN XP Prof
D3 Prof, D7 Ent
BeitragVerfasst: Mo 22.12.03 12:12 
moin ! :?!?:

eigentlich ziemlich simple frage, aber wie kann ich den cursor zur laufzeit weg bekommen ?
ich wollt nämlich ein prog nur mit tastatursteuerung und da ist die maus natürlich überflüssig.

tx, knuffel

_________________
Carpe Diem. Also programmier mit Delphi.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 22.12.03 12:24 
Hi!

Den Cursor in der Form unsichtbar machst Du mit
ausblenden Delphi-Quelltext
1:
Form1.Cursor := crNone;					


MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 22.12.03 13:42 
Und wenn du den Cursor später mal wiederherstellen willst, nimm am Besten

ausblenden Delphi-Quelltext
1:
2:
ShowCursor(false); //Verstecken
ShowCursor(true); //Anzeigen
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 30.12.03 21:57 
Hallo,

ShowCursor würde ich net empfehlen - dann verschwindet er SYSTEMWEIT. Aber wers nicht lassen kann, sollte den Rückgabewert prüfen: Wenn der >0 0 ist, ist der Cursor sichtbar, d.h. evtl. muss man ShowCursor mehrmals aufruefn um ihn anzuzeigen / verbergen (am besten mit 'ner repeat-schleife).[/delphi]

_________________
Life is a bad adventure, but the graphic is really good!
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 30.12.03 22:39 
Bei mir nicht (WinXP).. Welches OS hast du denn?
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 30.12.03 22:45 
Hallo,

XP Home - kann sein. Na ja, trotz allem stimmt meine letze Bemerkung (das mit dem Rückgabewert). Muss das mal unter Win98 probieren. Na ja.

Aber einen habe ich noch: wenn man den Formularcursor (oder den eines Controls) ändert, so ändert sich der Cursor rtst nach der nächsten Mausbewegung. Daher: wenns sofort sein soll: den Aplication.Cursor ändern.

Auch hier: bei mir ist das so. Andere haben selber zu probeiren :wink:

_________________
Life is a bad adventure, but the graphic is really good!
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 30.12.03 22:52 
Bei mir ändert er sich direkt... :?

btw: Application.Cursor gibt es nicht und wenn man den Formularcursor ändert, zählt das nicht für Childcontrols :roll:
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 30.12.03 22:58 
Hallo,

:oops: Screen.Cursor... das kommt davon... notiz an mich: vor dem posten Onlinehilfe lesen...

Aber das mit TControl.Cursor stimmt! Ich weiß nicht, ob es an MEINER Hardware liegt, aber sicher ist sicher, oder...? Es macht ja auch nix, wenn der Cursor sich erst nach 1 Pixel Bewegung ändert, aber es ist ein Punkt, den man um 0.234% verbessern könnte...

_________________
Life is a bad adventure, but the graphic is really good!