Autor Beitrag
Delphi-Noobie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31



BeitragVerfasst: Sa 15.11.03 21:31 
Hi!

Wie kann ich einstellen, dass sich der Mauszeiger ändert, wenn ich auf einen Button mit der Maus gehe (Onmousemove), er aber noch während ich auf dem Button bin wechselt. Wenn ich bei Onmousemove bei Form1
den Quellcode schreibe:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var h: THandle;
begin
  h:=LoadImage(0,'Cursorname.ani',
IMAGE_CURSOR,0,0,LR_DEFAULTSIZE or LR_LOADFROMFILE);
    Screen.Cursors[1]:=h;
    Form1.Cursor:=1;
end;

dann klappt es auch, jedoch auf einen Button kommt wieder der normale standart Windowscursor :(

Kennt da einer ne Lösung? :?

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.

_________________
Was du heute kannst verschieben, das besorge lieber morgen.
Michael Stenzel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 133


D3 Prof, D7 PE
BeitragVerfasst: Mo 17.11.03 01:06 
Hallo.

Du mußt beim Button auch den Cursoreigenschaft einstellen.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var h: THandle; 
begin 
  h:=LoadImage(0,'Cursorname.ani', 
IMAGE_CURSOR,0,0,LR_DEFAULTSIZE or LR_LOADFROMFILE); 
    Screen.Cursors[1]:=h; 
    Form1.Cursor:=1;
    Button1.Cursor := 1; // <------
end;


Gruß
Michael.
Delphi-Noobie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31



BeitragVerfasst: Mo 17.11.03 16:40 
cool Danke @ Michael jetzt funzt es!

_________________
Was du heute kannst verschieben, das besorge lieber morgen.