Maus - Zeiger

Previous topic - Next topic

WPShadow

Hallo,

hat jemand von euch eine Idee, wie man *.cur bzw. *.ani laden k?nnte?

Ich vermute, da? *.ani schwieriger sein wird!

Gru?

W.
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Schranz0r

#1
Egal ob *.cur oder *.ani :


Code (glbasic) Select
INLINE
}
#define HINSTANCE W32HINSTANCE
#define HINSTANCE__ W32HINSTANCE__
#undef LPSTR
#undef DECLARE_HANDLE
#undef LPCTSTR
#undef DWORD
#undef LPWSTR
#undef LPCWSTR
#define HWND W32HWND
#define HWND__ W32HWND__
#define HANDLE W32HANDLE
#undef MAX_PATH
#undef TCHAR
#define WIN32_LEAN_AND_MEAN
#define WinMain WinMain2
#include <windows.h>

namespace __GLBASIC__ {



ENDINLINE






FUNCTION Set_Cursor: file$
INLINE
SetCursor( LoadCursorFromFile( file_Str.c_str() ) );
ENDINLINE
ENDFUNCTION


Das in eine neue Datei, dann dem Projekt anh?ngen...
Achja du brauchst das Headerpack von der GLBasic-Hauptseite!
Schau das du das dann auch richtig entpackst und die Ordnerstrucktur auch einh?ltst.

Geht nur solange, wie die Maus ?bern Fenster ist. Bist du mal runter und gehts wieder drauf, ist alles wie vorher...
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

WPShadow

Ok, ist also auch keine ordentliche L?sung! Doof...

Ich denke mir was aus!

Danke, Schranzi!!!
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Schranz0r

Nehme x/y Position der Maus und setze ein Bild.
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

WPShadow

Das mache ich immer!

Ich baue eher an Mausanimation und Timer daf?r herum.

Deshalb habe ich herum ?berlegt, ob und wie ich solche Curser rein bekommen k?nnte:

http://www.totallyfreecursors.com/category.cfm/id/35/Cartoons.htm

AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Kitty Hello

Als echten Mauszeiger oder als GLBasic Sprite (Systempointer false)? Da k?nntest Du die GIF von der Webseite nehmen und PNG draus machen.

WPShadow

Aus dem GIF eine PNG machen ist kein Problem!

Wie sieht das jedoch mit der Animation aus? Da mu? ich doch alle Animationsschritte einzeln speichern --> z.B. Loadanim, oder?
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est