Autor Beitrag
eurohasi2
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 02.09.03 17:31 
Hallo,

wie kann man den Mauszeiger als Bild darstellen ????


Danke im voraus ...

_________________
Was man einmal gedacht hat, kann man nie mehr zurücknehmen.
recall
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Di 02.09.03 20:12 
Hallo,

Möchtest du ein "ScreenShot" des Mauszeigers machen ?
Oder das Aussehen des Mauszeigers ändern ?
Oder was anderes ?

Viele Grüsse.
eurohasi2 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 02.09.03 20:24 
Dass der Mauszeiger ein Bild ist !
Könnt ihr mir bitte helfen.

_________________
Was man einmal gedacht hat, kann man nie mehr zurücknehmen.
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mi 03.09.03 09:11 
Steht in der Delphi-Hilfe, Stichwort "Cursor":

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
const

  crMyCursor = 5;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Screen.Cursors[crMyCursor] := LoadCursor(HInstance, 'NewCursor');
  Cursor := crMyCursor;
end;

_________________
Ha! Es compiliert! Wir können ausliefern!
eurohasi2 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 03.09.03 14:03 
nein ich will ein bild als corser haben !

also ein bild z.b. gebäude1.bmp als corser anzeigen!

_________________
Was man einmal gedacht hat, kann man nie mehr zurücknehmen.
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Mi 03.09.03 14:05 
Das Problem hatte ich auch.

Mit welcher Grafikschnittstelle arbeitest du denn?

    DelphiX
    OpenGL
    Standart Form

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
eurohasi2 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 03.09.03 14:09 
gar keine, geht das denn nicht einfach mit delphi (ich hab delphi 3).

:roll:

einfach als Corser ein Bild laden ???

Du siehst ich bin anfänger ...

_________________
Was man einmal gedacht hat, kann man nie mehr zurücknehmen.
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Mi 03.09.03 14:36 
Ich weiß, was du meinst, aber das geht nicht so einfach. Du kannst nicht jede größe benutzen, sondern nur bestimme.

Darf ich einmal Fragen, was du vorhast? Ich frage mich nämlich, ob du die richtige Grafikmethode benutzt.

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
eurohasi2 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 03.09.03 14:52 
also ich will ein kleines 3d spiel machen, und wennich im baumenü ein gbäude bau, dann wieder auf das spielfeld gehe, dann soll am maus zeiger das gebäude hängen, wenn ich wieder klicke, dann bautn er das gebäude hin, ausser dort steht schon ein anderes ...

_________________
Was man einmal gedacht hat, kann man nie mehr zurücknehmen.
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Mi 03.09.03 15:17 
Aha,

also du benutzt, wenn du ein 3D Spiel machst bestimmt nicht die einfache Canvas-Function zum zeichnen, sondern OpenGL, DirectX oder so.

Du musst wirst sicherlich eine Funktion haben, die den ganzen Bildschirm zeichnet.

Du musst also einen Timer einsetzen, bei dessen Auslösung das Bild neugezeichnet wird.

Wenn du nun ein Gebäude aufnimmst, zeichnest du einfach, nachdem du alles gezeichnet hast, dein Gebäude genau an die Stelle, wo der Mauszeiger ist. Keine Angst, das ist schnell genug.

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
eurohasi2 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 03.09.03 15:23 
doch ich nehm schon das canvas-zeug her ...

_________________
Was man einmal gedacht hat, kann man nie mehr zurücknehmen.
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Mi 03.09.03 15:48 
Damit machst du 3d?

Oder meinst du eine Feste sicht von schräg-Oben?

Dann wäre es besser, wenn du Abstand vom Canvas nimmst.

Nimm besser DelphiX (recht einfach) www.yks.ne.jp/~hori/DelphiX-e.html

oder OpenGL

Die sachen sind viel schneller und einfacher zu bediene(auf jedenfall delphix)

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Mi 03.09.03 16:03 
Hier mal ein DelphiX-Beispiel

www.bekr.de/mauszeiger.zip

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
eurohasi2 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 03.09.03 19:31 
ok,

Danke,

Könnt ihr mir irgendwelche tutorials, oder links, zu delphix geben ???

_________________
Was man einmal gedacht hat, kann man nie mehr zurücknehmen.
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Mi 03.09.03 19:50 

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
eurohasi2 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Do 04.09.03 10:12 
dank!



:D :D

_________________
Was man einmal gedacht hat, kann man nie mehr zurücknehmen.