Re: gray text in an entry



This is called "placeholder text", and you can set it using Gtk::Entry::set_placeholder_text().

On Aug 12, 2015 11:44 AM, "Nicolas Jäger" <jagernicolas legtux org> wrote:
>
> Hi,
> I want to write in light gray "title" in an entry. Then if I clicked on
> the entry to edit it, I want this text not shown anymore except in the
> case where the entry is left without some text (then I want "title"
> back).
>
> is it something I can do straightforward ? or should I do that from
> scratch with callbacks and stuffs ?
>
> regards,
> Nicolas
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> https://mail.gnome.org/mailman/listinfo/gtkmm-list



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