Re: Gtk::SpinButton - text?



Andreas Volz wrote:

Hi,

is there a way to insert a string "not available" or "n/a" in a
Gtk::SpinButton? I tried this, but it doesn't work:

   spin_button.set_sensitive (false);
   spin_button.set_numeric (false);
   spin_button.set_text ("not available");

regards
Andreas
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Hello Andreas:

Use the Gtk::SpinButton::set_numeric method with a formal parameter of FALSE to allow entry of non-numeric characters into the entry widget of a spin button.

Bob Caryl



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