Hi everyone,

 

Can someone tell me how to set up a default value for a spin button in Glade?

 

I am using Glade 3.6.7 under Ubuntu 9.10.

 

Here's what I have done to set up my spin button.

 -Create spin button in the window.

 -Set "Numeric" property to yes.

 

 -Create adjustment and call it spinadjustment.

 -Set value to 123.00

 -Set max value to 600.00

 -Step increment 1.

 -Page increment 1.

 

For some reason, when I run my program which loads the glade file, the spin 
buttons are always set to 0. I have tried altering the page size but it did not 
make any difference. I am also not accessing the spin buttons in my code or 
setting its values. I would like 123 to be the initial value of the spin button.

 

Does anyone know why this is happening?

 

Cheers :)
                                          
_________________________________________________________________
Hotmail & Messenger are available on your phone. Try now.
http://go.microsoft.com/?linkid=9724461
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to