Autor Beitrag
lars
Hält's aus hier
Beiträge: 6



BeitragVerfasst: Do 07.11.02 14:59 
Ich habe folgendes Problem: Ich setze den Mouscursor um (crDefault bzw. crNone), aber der Cursor wird nicht sofort umgezeichnet, sondern erst, wenn die Mouse bewegt wird. Hat jemand einen Lösung, wie ich den Mousecursor sofort umzeichnen lassen kann (bsp. indme ich ein onMouseMove auslöse??)
Danke
Lars
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 07.11.02 16:51 
das kling jetzt vielleich doof, aber das ist jetzt so das erste was mir einfällt !!!

Dann beweg doch die maus nach dem cursor wechles einen pixel nach oben oder so !!!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Do 07.11.02 17:07 
kommt ganz drauf an, wo du deinen Cursor unsichtbar machst.
Ich hab's im FormCreate-Event gemacht, und da klappt's automatisch (zumindest mit Delphi 6PE unter Win98). Wenn du allerdings im MouseMove-Event den Cursor setzt, muss sich erst die Mouse moven (wie der Name schon sagt *g*) bevor es einen anderen Cursor gibt. Also musst du eifnach drauf achten, zu welchem Zeitpunkt der Cursor gesetzt wird. Am besten immer nach einem bestimmten Event (zum beispiel nach der erstellung der Form (FormCreate), bzw einer bestimmten Prozedur. Schlecht sind natürlich alle Mouse-Events, weil diese entweder einen Klick, eine Bewegung oder sonstwas von der Maus fordern, bis der Cursor verschwindet.

Tschüß
Thomas

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert