Autor Beitrag
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Mi 11.06.08 19:34 
Hallo,

ich habe viele verschiedene Bitmaps, und da ich die ganzen Dateien nicht zu unübersichtlich habe, suche ich einen Weg, zur Laufzeit die Bitmap-Dateien in Cursor umzuwandeln und zu benutzen...

_________________
1405006117752879898543142606244511569936384000000000.
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Fr 13.06.08 12:46 
Mal ne (Dumme) Frage: Is n Cursor nich n .cur oder so?

des weiteren:

ausblenden Delphi-Quelltext
1:
OnMouseMove					
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Fr 13.06.08 12:59 
user profile iconFinnO hat folgendes geschrieben:
Mal ne (Dumme) Frage: Is n Cursor nich n .cur oder so?


Ja. Oder für animierte Cursor .ani

user profile iconFinnO hat folgendes geschrieben:

ausblenden Delphi-Quelltext
1:
OnMouseMove					


Für eine Bitmap schon, das wäre dann halt ein Bitmap-Cursor, allersings nicht für einen richtigen Cursor, welcher in einer cur-Datei gespeichert ist (kannst du mit dem Borland Bildeditor erstellen), gibt es elegantere Methoden.

Klick
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 14.06.08 09:48 
Meine Frage ist, wie ich dynamisch, während der Laufzeit aus einer Bitmap einen Cursor erstellen kann...
Also wirklich etwas, was als TCursor aufgefasst werden kann...

_________________
1405006117752879898543142606244511569936384000000000.
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Sa 14.06.08 09:59 
Erstelle mit dem Borland-Bildeditor eine neue Cursor-Datei (*.cur) und folge dann dem Link, den ich gepostet habe.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 14.06.08 14:41 
Hallo,

ich nehme an das Dir das weiterhilft:
delphi.about.com: How to Convert a Bitmap to a Cursor

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 14.06.08 19:55 
was ist nun, wenn ich keine mask habe?

_________________
1405006117752879898543142606244511569936384000000000.
Reinhard Kern
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 591
Erhaltene Danke: 14



BeitragVerfasst: So 15.06.08 05:33 
user profile iconWolle92 hat folgendes geschrieben:
was ist nun, wenn ich keine mask habe?


Dann must du die Maske eben dazuzeichnen.

Wenn die Bitmap Transparenz hat, könnte man die Maske automatisch ableiten: die Maske ist schwarz, wo die Bitmap transparent ist, sonst weiss. Die Software dafür muss man wohl selbst schreiben.

Gruss Reinhard
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: So 15.06.08 08:18 
heißt, wenn ich ne Quadratische, nicht transparente Bitmap habe, dann kann ich die Bitmap der Mask einfach mit weiß füllen?

_________________
1405006117752879898543142606244511569936384000000000.
Mini-Programmierer
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Di 17.06.08 15:23 
Meine Meinung: Das ist kein Cursor
Cursor d.h. den Standard Cursor ersetzen
Falsche Titel von dem Tutorial

MFG
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Di 17.06.08 16:54 
es geht darum, bei drag&drop das zu draggende Image als cursor zu verwenden...

_________________
1405006117752879898543142606244511569936384000000000.