Autor Beitrag
DelphiProgrammer97
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: So 17.01.10 10:30 
Hallo,

Für einesmeiner Pojekte bauche ich einen passenden Cursor, entwerfen, no problem, aber ich würde gerne wisen wie ich das image was ich gemacht habe als Cursor verwenden kann...

danke schonmal im vorraus

DelphiProgrammer97
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19339
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 17.01.10 11:17 
Ein Beispiel findest du hier:
delphi.about.com/od/...s2005/qt/bmp2cur.htm
DelphiProgrammer97 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: So 17.01.10 11:22 
ich glaub ich lasse das lieber, mein englisch ist sehr spärlich vorhanden
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19339
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 17.01.10 12:21 
Abgesehen davon, dass du beim Programmieren ohne Englisch nicht weit kommst (und wenn du so schnell aufgibst schon gar nicht):
Probier das Beispiel doch einfach aus, sind doch nur wenige Zeilen.

Du nimmst zwei Bitmaps mit den beiden Bildern, setzt den Hotspot, an dem im Cursor geklickt wird, dann benutzt du CreateIconIndirect um daraus einen Cursor zu erzeugen, den du in Screen.Cursors einfügen kannst.

Wobei dem Beispiel noch die Pfadangabe und die try..finally Blöcke fehlen.
DelphiProgrammer97 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: So 17.01.10 13:53 
ich finde nirgendwo ein CreateIconIndirect
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19339
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 17.01.10 14:29 
user profile iconDelphiProgrammer97 hat folgendes geschrieben Zum zitierten Posting springen:
ich finde nirgendwo ein CreateIconIndirect
Hast du irgendeine uralte Delphiversion oder so? :gruebel:
Bei mir ist das ganz normal vorhanden. Natürlich in der Unit Windows.
DelphiProgrammer97 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: So 17.01.10 18:14 
ich habe delphi 6 professional
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19339
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 17.01.10 19:16 
Bei Delphi 6 Personal kann ich die Funktion ganz normal benutzen ohne irgendetwas machen zu müssen. :nixweiss:
DelphiProgrammer97 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: So 17.01.10 19:59 
ich muss nochmal schauen also in der registrierkarte "windows" oder?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19339
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 17.01.10 20:14 
Ähhhh... :shock:
Das ist eine normale Funktion, die du aufrufen kannst. Was hat das jetzt mit den Komponenten in der Komponentenpalette zu tun?
Frühlingsrolle
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 18.01.10 02:33 
- Nachträglich durch die Entwickler-Ecke gelöscht -
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19339
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 18.01.10 03:15 
Der Unterschied ist, dass man dafür die fertigen Cursordateien braucht, während der obige Quelltext normale Bitmaps benutzt.
DelphiProgrammer97 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Mo 18.01.10 09:03 
ok, ich befasse mich mal etwas damit