[9059] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: QSpinBox
daemon@ATHENA.MIT.EDU (Stephan Krings)
Mon Oct 5 13:29:05 1998
Date: Mon, 5 Oct 1998 19:25:50 +0200 (CEST)
From: Stephan Krings <slothkri@zedat.fu-berlin.de>
To: gonzalez@mppmu.mpg.de
Cc: gtk-list@redhat.com
In-Reply-To: <Pine.OSF.3.94.981005172253.20140A-100000@hegra1.mppmu.mpg.de>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Hello,
> I'm trying to use an entry box and two buttons to implement a
> widget like that of Qt, called QSpinBox: this is an text entry
> with two small buttons at the right side, one above the other,
> with arrows pointing up and down, and which, obviously, increment
> the value of the entry text in one unit.
hope this isn't disappointing for you, but such a widget already
exists in GTK. At least for me in 1.0.6. Don't know when it was
introduced.
Have a look at gtkspinbutton. I haven't worked with it yet and it
seems to completely lack documentation, but its usage seems to be
pretty easy and similar to range-widgets. This is what I've noticed in
the header-files.
Best regards,
Stephan
--
Stephan Krings Freie Universitaet Berlin
AG Kommunikationsserver Zentraleinrichtung fuer Datenverarbeitung (ZEDAT)
slothkri@zedat.fu-berlin.de Fabeckstr. 32
Tel: +49 30 838 3239 14195 Berlin
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null