gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] phrase wheel pick list window scrolling


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] phrase wheel pick list window scrolling
Date: Thu, 18 Sep 2003 14:12:32 +0200
User-agent: Mutt/1.3.22.1i

> > Scrolling only happens when *releasing* the arrow up/down key
> > (due to our handling that with evt_key_up).
> EVT_KEY_DOWN has this autorepeat behaviour, done.
> 
> > The list window does not adjust (within reasonable limits) to the
> > number of lines in it.
> It does now ;-)
Excellent :-)

> > When scrolling in the list off the currently displayed amount
> > the selected line does not move into view.
> Haven't got an easy solution to this one. Problem is, we are setting the 
> selected line in the wxListBox "manually" in response to keypresses. If you 
> transfer focus to the list by clicking, then it shows the proper behaviour 
> (as it is using its own handlers to respond to the keypresses).
If the list box is focussed (by, say, clicking on it with the
mouse) it won't transfer selected content to the textctrl
anymore. In all actuality it should be unfocussable ...

> The best solution would be to shunt the key events to the listbox using 
> wxEvtHandler.ProcessEvent (), but this doesn't work.
I tried that, too. I suppose the reason for that is that in
evt_key_down() we receive key events while the list box wants
some other event to make itself scroll. I've been unable to
find out what event it wants, though, despite looking. IMHO we
might get help from the wxpython/wxwindows people directly.

Anyone well-connected care to post that problem on their lists ?

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]