Re: How to enter a floating-point number ?



On Wed, 2004-06-02 at 11:39, Freddie Unpenstein wrote:
Out of interest.....

What is the "proper" way to change the text colour of Entry, SpinButton and CheckButton widgets?

While I understand validating input from things like input boxes, I
think that displaying a checkbutton and allowing a user to use it
improperly is a gui design flaw.  

Rather you should not allow the user to select checkbuttons and boxes at
all that are improper given the current set of conditions.  Instead, why
not grey out the check boxes and check buttons.  Also combo boxes and
list pickers should either disable the choosing of certain entries or
remove them all together.  I believe this is a far cleaner solution to
what you are trying to do.  Also, it is truer to the MVC paradigm that
GTK strives to make possible.

Michael


I have a form which displays an entry from a database, and I wish to provide feedback on eroneous field 
values much as was mentioned in your post.

Currently I validate the fields, and if they're invalid, simply set the foreground colour of the widget to 
red.  This doesn't work all that well with the widgets mentioned above, however.  SpinButton fg colour is 
actually used for the little arrows, which actually doesn't look too bad...  but it doesn't really fit the 
goal.  And with CheckButton widgets, it seems to (occasionally) set the colour of the little dotted box 
around the outside used to indicate keyboard focus.  ;)


Any suggestions would be much appreciated.

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- 
Michael Torrie <torriem chem byu edu>



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