Re: a bunch of issues



On Fri, 2003-01-24 at 16:36, Michal "Gleba" Ziemski wrote:
>  > > * Is it possible to force the focus to stay on the widget (GtkEntry) =
>  > >after the user pressed TAB?
>  >
>  > handle the key_press and key_release events, return TRUE if the key is
>  > one that you don't want handled by the normal mechanism.
> 
>  Well, this should work fine. But there may be more than one key combination
>  to
>  leave the widget (i.e. mnemonics on other widgets or some fancy accel
>  table).
>  Furthermore the user still can mischievously click in another widget thus
>  mocking the programmer. Any ideas how to disallow that?

I submitted a patch and a demonstartion program for the path that
implements validation for GtkEntry,GtkSpinbutton and GtkCombo
widgets earlier on in January.
The patch and demo program can be found at :
http://bugzilla.gnome.org/show_bug.cgi?id=50276
The approach I took was to allow the developer to install a 
validation callback on an entry widget and then if the user
tries to do something that would cause the focus to leave the
entry, the event would be discarded.

I was a little disappointed because I received exactly zero feedback,
even a comment like "your approach sucks" would be better than
no feedback at all.

-- 
Scott Andrew Baillie <sbaillie bigpond net au>
SabCorp




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