spinner widget
- From: James Pelletier <jamesp trdlnk com>
 
- To: gtk-list gnome org
 
- Subject: spinner widget
 
- Date: Mon, 26 Mar 2007 10:51:32 -0500
 
I've been working on a spinner widget that is basically just the spinner 
portion of a spinbutton.
Although the spinbutton handles numbers fairly cleanly, it doesn't seem 
to work well when trying to use it for other purposes. Although you can 
use the signals to have it display text (like the days of the week 
example), it does not handle user typing in a value well. Also, since 
there is no way to change how it looks, it always appears as an entry 
that the user can type in.
My solution to this is a stand-alone spinner widget. The spinner will 
just appear as a pair of arrows and hold a double value and the 
developer could use that value to control a plain label, image, or 
anything else.
The spinner as I have written it derives from GtkRange and has "wrap" 
and "snap_to_ticks" properties (the same as the spinbutton).
Thoughts?
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]