[Gtk-sharp-list] Hourglass cursor in a Gtk# app for WinXP?

Jacek Ruzyczka ruzyczka at versanet.de
Mon Dec 3 13:10:02 EST 2007


Am Montag, 3. Dezember 2007 19:04 schrieben Sie:
> Gdk.CursorType.Watch is what we use in our Cross-platform application,
> and it works as expected for us.  Cursors are set on a GdkWindow, so
> make sure your cursor is inside the window to see it change.
>
I've already taken that into account:

		///<summary>
		///true, if this form is locked and the cursor has the
		///shape of an hourglass (Windows) or watch (Linux).
		///</summary>
		public bool Hourglass {

			set {
				if (value == true) {
					this.GdkWindow.Cursor = new Cursor
						(Gdk.CursorType.Watch);
				}
				else {
					this.GdkWindow.Cursor = new Cursor
						(Gdk.CursorType.LeftPtr);
				}
			}
		}


> What Gtk+ version are you using?
>
1.2.10-926

Regards
Jacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071203/78706cfc/attachment.bin 


More information about the Gtk-sharp-list mailing list