SpinButton with float value
- From: Angel Jimenez Jimenez <ajimenez vnet es>
- To: "gtk-list redhat com" <gtk-list redhat com>
- Subject: SpinButton with float value
- Date: Thu, 28 May 1998 18:22:07 +0000
Hi.
I'm trying to use a spin button to edit a float value, but I can't get
it to work. All I can enter is an integral positive number. I'm probably
doing something wrong, but I can't figure out what.
This is the code (using GTK--):
ptAdjustment = new Gtk_Adjustment (value, FLT_MIN, FLT_MAX, 1, 10,
10);
assert ( ptAdjustment );
ptWidget = new Gtk_SpinButton (ptAdjustment, 0, 3);
assert ( ptWidget );
Thanks.
Angel.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]