GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can only input numeric in Gtk::Entry(gtkmm)

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
AzureSky



Joined: 18 Apr 2008
Posts: 3
Location: DongGuan,China

PostPosted: Tue May 06, 2008 11:36 am    Post subject: How can only input numeric in Gtk::Entry(gtkmm) Reply with quote

How can only input numeric in Gtk::Entry,
who can tell me? thanks :P
Back to top
cofcof
Familiar Face


Joined: 02 Apr 2008
Posts: 16

PostPosted: Wed May 07, 2008 4:15 am    Post subject: Reply with quote

Hi AzureSky


I don't know how easy hard it is, I personally prefer to use GtkSpinButton
when I only want numeric, makes things easier

CofCof
Back to top
AzureSky



Joined: 18 Apr 2008
Posts: 3
Location: DongGuan,China

PostPosted: Wed May 07, 2008 4:35 am    Post subject: Reply with quote

yes, i know GtkSpinButton can do it,
because I would like to make GUI looks the same,so I want to use Gtk::Entry. :P
but,it seems now, I still better use spinbutton :cry:
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 427
Location: Portland, OR USA

PostPosted: Wed May 07, 2008 3:43 pm    Post subject: Reply with quote

Your answer is the the GTK FAQ here: http://library.gnome.org/devel/gtk-faq/stable/x843.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP