Re: GtkText widget handling of "default values"



Andreas Tille <tille@physik.uni-halle.de> wrote:
> 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.
>Any hints how to do that in a clever manner?

Hi Andreas, have you tried gtk_entry_select_region()? I think this does what
you're asking for.

John
--
John Cupitt, john.cupitt@ng-london.org.uk, +44 (0)171 930 2108
VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN



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