RE: How to create an invisible cursor?

I was able to find a solution. This code creates an invisible cursor:
GdkCursor* cursor = gdk_cursor_new(GDK_BLANK_CURSOR);
//'window' is any widget which has a Gdk::Window

Is there a way to use only gtkmm code and not gtk+ code?

PS:You should put the above code snippet in Gdk::Window::set_cursor's documentation because I think it is more straight-forward than the current suggestion.

From: sledgehammer_999 hotmail com
To: gtkmm-list gnome org
Subject: How to create an invisible cursor?
Date: Tue, 4 Aug 2009 17:21:13 +0300

I want to make an invisible cursor in gtkmm. The documentation of Gdk::Window::set_cursor say that I have to use "gdk_cursor_new_from_pixmap()". Is this really necessecary? If yes, can you give me an example? I couldn't figure it out on my own :(

PS. Why Gdk::CursorType doesn't support "GDK_BLANK_CURSOR"? I think it would make things a lot easier.

Thanks in advance.

Με το Windows Live, μπορείτε να οργανώνετε, να επεξεργάζεστε και να μοιράζεστε τις φωτογραφίες σας.

Κατεβάστε τη συλλογή Crazy Creatures για το Messenger Κάντε κλικ εδώ!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]