[Gtk-sharp-list] subclass a gtk.spinbutton

David Cantin david_cantin at videotron.ca
Tue Apr 18 19:17:57 EDT 2006

Hi, I'm trying to sublcass a spinbutton to get some extra behaviour but
I don't know to do it and i do not find any relevant example on the web.

what I have for now is the code below but I get errors related to null
pointer instance when I try to use my MySpinButton class.

using Gtk;
using System;

public class MySpinButton : SpinButton{

	static IntPtr myIntPtr;

	public static new IntPtr intPtr {
		get {
			return myIntPtr;
		set {
			myIntPtr = value;

    public MySpinButton(Adjustment adj, double climbRate, uint digits) :
base(intPtr) {

so if someone have any clues, it will be very appreciated



More information about the Gtk-sharp-list mailing list