Re: gtk_text_buffer_delete ?



On Thu, 08 Oct 2015 20:59:21 +0200
Stefan Salewski <mail ssalewski de> wrote:

I was hoping that it could be possible to simple block input when buffer
has a maximum length, but I got that not working.

Note that this can give an unpleasant user experience. It might be more helpful just to have a count of 
characters available that becomes negative and changes from grey to red (change both lightness and colour, 
for people who can't differentiate black from red) - you see this approach on Web sites quite often. Then 
people can paste a longer text and delete it, or can add a new word and then delete a longer one.

Best,

Liam


-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/


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