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 

spin button

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
alen121
Familiar Face


Joined: 28 Sep 2007
Posts: 30

PostPosted: Thu May 15, 2008 1:52 pm    Post subject: spin button Reply with quote

I want when the spin button display 1 display it as 01 not 1 . what should i do ?
Back to top
Micah Carrick
Never Seen the Sunlight


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

PostPosted: Thu May 15, 2008 3:37 pm    Post subject: Reply with quote

Tricky one. The only thing I can think of without digging too deep is to derive an new object from GtkSpinButton and add that '0' to the code if it's between 1 and 9.

But to me that seems overkill for just a slight cosmetic difference which also breaks consistency between your app and others.
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