Re: Alias expansion update.



On Wed, 29 Nov 2000 11:19:43 Ian Campbell wrote:
> 
> On 2000-11-28 18:28:39 +0000 Berend De Schouwer wrote:
> > Hi,
> > 
> > Advantages for users:
> > - The keys should behave a lot more intuitive now.
> >   Keys that work better include ',', 'end', 'home', 'left', 'right',
> etc.
> 
> Cool, is tab still used to cycle? This interferes with moving between
> widgets. Perhaps Up and Down could be used?

Tab is still used to cycle, but it will move to the next widget much
quicker.  I've got no problem with making other keys cycle if
people come to an agreement about which keys to use :)

Currently:
ENTER accepts the expanded alias, and goes to the next widget.
DOWN ignores the expanded alias, and goes to the next widget.
TAB cycles if it can, otherwise it goes to the next widget.

I need:
- At least one key to cycle (currently tab).
- At least one key to go to the next entrybox accepting the alias.
- At least one key to go to the next entrybox ignoring the alias.

This is a request-for-comment :)  Anybody please give opinions.
I need final keystrokes before I update the documentation.
 
> > Caveats:
> > - It no longer colours the expansion.  I can only do this with
> >   gtk_editable_set_selection(), which breaks normal cut & paste
> >   in the e-mail.  Can anybody tell me how to add colour to a
> >   GtkEntry() widget?
> 
> I think that instead of wrapping an API around the GtkEntry you should
> sub-class it (BalsaAddressEntry??). Then you can override the draw method
> and do what ever you want, ie draw the completed part in ghosted text or
> whatever (little arrow symbols to indicate more completions, eye candy
> like that).

I'm all for that.  I gotta read up a LOT on GTK, and read the actual
GTK source before I do that!  It'll be ready in 2002.  Seriously, I
would like that very much, but the alias stuff needs fixing much more
urgently than I can create BalsaAddressEntry.  However, if someone
can get me started...

> I also suspect that if you are doing some of the drawing yourself that
> you can simplify the data structures further (not that I have seen the
> new ones) since you can keep them as you want them, and not have to
> bend over backwards to make it convenient to insert into a GtkEntry.

Hmm, the data structures aren't horribly complex anymore.  The bigger
advantage is that I don't have to guess (and it is a guess) what
happened when the widget loses focus, and regains focus.  Its necessary
because the mouse can move the cursor.

> -- 
> Ian Campbell
> Churchill College, Cambridge.
> 

Kind regards,				  
Berend                                  

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Berend De Schouwer, +27-11-712-1435, UCS





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