Page 1 of 1

cursor prob

Posted: Sat Dec 06, 2003 11:16 am
by Flo
hi guys :)

i've got a little prob with the cursor in the irrlicht engine. i tried to implement an own cursor in 2 different ways, but both didn't work right ...

1. way:
when i load the cursor as a 2d image that is drawn at the mouse position and i also use gui elements, then the "cursor" is behind them ...
so, is there any way to set the gui elements as "background" or to set the cursor image as "foreground"?

2. way:
i tried the thing with that code:

Code: Select all

	WNDCLASSEX wcex;
	wcex.hCursor = LoadCursor(hInstance, MAKEINTRESOURCE(IDC_ALBIONCUR));
but it didn't work either ...


any idea how to do this right?

Posted: Sat Dec 06, 2003 11:44 am
by Ironfoot
The 1st Way should work, but you have to ensure that you're rendering the Cursor after the GUI-Elements...

Posted: Sat Dec 06, 2003 12:27 pm
by Flo
big thx :) it works now :)