Cannot change the default mouse cursor (0.8.3)

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

Revington_
Just popping in
Just popping in
Posts: 2
Joined: Sat May 17, 2014 21:54

Cannot change the default mouse cursor (0.8.3)

Postby Revington_ » Sat May 17, 2014 22:04

Hi All,

I'm trying to build a simple hello world app with python but setting the cursor image doesn't work.
I use a self compiled CEGUI/PYCEGUI 0.8.3 on windows 8.1 64bit:
I get this error:
PyCEGUI.System.getSingleton().getDefaultGUIContext().getMouseCursor().setDefaultImage("TaharezLook/MouseArrow")
TypeError: No to_python (by-value) converter found for C++ type: class CEGUI::MouseCursor

How can I set the default cursor image - or - is there a workaround for this bug?
At the moment lots of windows have no cursor and I have to call setMouseCursor on every window and even that doesn't work for all:
For example:
self.wnd.getTitlebar().setMouseCursor("Vanilla-Images/MouseArrow")

If I hover the mouse over the closing x the cursor disappears.

Greetings
Revington

PS
Thanks for this awesome GUI-Toolkit!
----------------
17/05/2014 23:46:22 (Std) ********************************************************************************
17/05/2014 23:46:22 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
17/05/2014 23:46:22 (Std) ********************************************************************************
17/05/2014 23:46:22 (Std) ---- Version: 0.8.3 (Build: May 14 2014 Microsoft Windows MSVC++ 10.0 64 bit) ----
17/05/2014 23:46:22 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
17/05/2014 23:46:22 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
17/05/2014 23:46:22 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
17/05/2014 23:46:22 (Std) ---- Scripting module is: None ----
17/05/2014 23:46:22 (Std) ********************************************************************************
17/05/2014 23:46:22 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
17/05/2014 23:46:22 (Std) ********************************************************************************

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Cannot change the default mouse cursor (0.8.3)

Postby Kulik » Sun May 18, 2014 22:02

This indeed looks like a bug. Probably an oversight on my part in PyCEGUI.

However I looked into the sources and PyCEGUI is exposing CEGUI::MouseCursor so I am really puzzled why this doesn't work for you. Do any other classes cause errors? Right now I have no leads why just MouseCursor doesn't work, it's exposed exactly as any other class.

https://bitbucket.org/cegui/cegui/src/6 ... 0-8#cl-408

Revington_
Just popping in
Just popping in
Posts: 2
Joined: Sat May 17, 2014 21:54

Re: Cannot change the default mouse cursor (0.8.3)

Postby Revington_ » Mon May 19, 2014 12:10

Everything else seems to work fine.

"After posting" :hammer: I found this issue report:
http://cegui.org.uk/mantis/view.php?id=996

Following the advice in the description fixed the problem for me.
Maybe its a problem with the default output from pyplusplus(not installed on my system) in ScriptModules/Python/bindings/output?

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Cannot change the default mouse cursor (0.8.3)

Postby Ident » Thu May 22, 2014 13:04

From the mantis bug report:
The problem is that the Py++ bindings try to return by value, but the mouse cursor is not copyable.

Why is it not returning by reference?
CrazyEddie: "I don't like GUIs"


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 8 guests