Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 29.09.09 08:58 
Hallo.
Ich bin heute in der IDE darauf gestoßen, dass Delphi anscheinend immer noch selbst einen Hand-Curosr setzt, nämlich diesen:delphi anstatt den in Windows eingestellten Zeiger zu verwenden win

Wieso ist das denn so? Mal ganz abgesehen davon, dass ich die Delphi-Hand hässlicher finde, würde ich ganz gerne doch die Windows-Hand haben.

Wieso lädt Delphi denn da seit Jahren (ich glaube in D5 war das auch schon so) einen eigenen Mauszeiger und wie bekomme ich den in Windows eingestellten?

Danke,
Matze


Moderiert von user profile iconNarses: Topic aus VCL (Visual Component Library) verschoben am Di 29.09.2009 um 09:09
Einloggen, um Attachments anzusehen!
_________________
In the beginning was the word.
And the word was content-type: text/plain.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 03.10.09 11:55 
Keine Antwort? das ist ja mal ungewöhnlich...

_________________
In the beginning was the word.
And the word was content-type: text/plain.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 03.10.09 12:29 
user profile iconmatze hat folgendes geschrieben Zum zitierten Posting springen:
Keine Antwort? das ist ja mal ungewöhnlich...
Ja, ich bin einfach den ganzen Tag arbeiten jetzt, da sehe ich nicht mehr alle Beiträge, aber jetzt ist ja Wochenende. :mrgreen:

Du musst nur den Hand-Cursor im Screen.Cursors Array überschreiben durch den Systemcursor. Den wiederum kannst du mit Hilfe von LoadCursor laden:
msdn.microsoft.com/e...ibrary/ms648391.aspx
Zitat:
To use one of the predefined cursors, the application must set the hInstance parameter to NULL and the lpCursorName parameter to one the following values:
[...]
IDC_HAND


Du kannst natürlich auch den Cursor mit einer neuen Konstante an anderer Stelle in Screen.Cursors laden und beide nach Wahl nutzen.