wxCURSOR_SIZE form difference on Linux/Windows

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Earned some good credits
Earned some good credits
Posts: 104
Joined: Tue Aug 28, 2018 1:02 pm
Location: Belarus

wxCURSOR_SIZE form difference on Linux/Windows

Post by rudolfninja » Thu Sep 19, 2019 12:10 pm

Hi everyone,
The general question if there somewhere in the documentation the pictures of how cursors should looks like?
Why I'm asking. I've got the following code to initialize cursors:

Code: Select all

        static const wxCursor wxCursorArrow = wxCursor(wxCURSOR_ARROW);
        static const wxCursor cursorSizeNWSE = wxCursor(wxCURSOR_SIZENWSE);
        static const wxCursor cursorSizeNESW = wxCursor(wxCURSOR_SIZENESW);
        static const wxCursor cursorSizeNS = wxCursor(wxCURSOR_SIZENS);
        static const wxCursor cursorSizeWE = wxCursor(wxCURSOR_SIZEWE);
Depending on mouse position I set specific cursor. However the form of cursors (for example wxCURSOR_SIZENESW) differs:
Linux (Gnome):
LinuxResize cursor.png
LinuxResize cursor.png (79.73 KiB) Viewed 477 times
Is it possible to make Linux-version cursor looks like the windows one?

Part Of The Furniture
Part Of The Furniture
Posts: 4374
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxCURSOR_SIZE form difference on Linux/Windows

Post by ONEEYEMAN » Thu Sep 19, 2019 2:27 pm

I think the Windows has a faulty cursor and Linux is correct here.

Also I vaguely remember there was an old ticket on trac about that. Unfortunately I don't remember the details.

Check the trac.wxwidgets.org.

Thank you.

Post Reply