[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Limited chars input into entry widget.
- From: Damian Kramer <dkramer cup cam ac uk>
- To: gtk-app-devel-list redhat com
- Subject: Limited chars input into entry widget.
- Date: Wed, 13 Oct 1999 15:04:18 +0100 (BST)
I'm trying to use the entry widget for text input of a limited nature, i.e.
I only wnat to allow certain chars to be added. At the moment I'm catching
all keypresses, scanning the text for chars that are not allowed, removing
them and then setting the text back.
This has the side effect of leaving the cursor dangling out in the middle of
nowhere because the text length has changed. Trying to set the cursor
position manually doesn't work.
Is there a nicer way to do this, or am I stuck with this kludge?
Thanks in advance.
~Damian
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]