Re: How to enter a floating-point number ?
- From: Russell Shaw <rjshaw netspace net au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to enter a floating-point number ?
- Date: Thu, 03 Jun 2004 03:53:32 +1000
Freddie Unpenstein wrote:
Out of interest.....
What is the "proper" way to change the text colour of Entry, SpinButton and CheckButton widgets?
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.
GtkLabel has no window, so you need to put it into a GtkEventBox and change
the colour of that.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]