GtkText widget handling of "default values"



Hello,

I want to implement the usual behaviour of representing a default
value to the user.  The default is usual marked with a certain
colour and if the user enters a letter into the field the default
is cancelled and replaced by the letter.  However, if the user
does any movement, the default becomes valid and can be changed
or accepted now.

Is this behaviour implemented in GTK+ 1.2 or will I have to do
this myself?  If it is not implemented I would consider it to
be a needed feature for future versions (not only for GtkText but
(may be more importantly) for GtkEntry).  Any hints how to do that
in a clever manner?

Kind regards

          Andreas.



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