Odd behaviour of listbox marquee

By marquee I mean the highlighted line when clicked on.

I usually use ListCtrls, but just wanted a single column so used the listbox.

I just noticed, that when one clicks on the listbox item, and then uses the up
and down arrow keys to move through the list, the highlighted line remains on
the row you first clicked on, and the row being moved to just has a dotted
line around it as you move up and down the list.

This seems like bizarre behaviour to me, and certainly not what happens in a
listctrl. One would expect the marquee to follow the arrow keys and highlight
the next line moved to.

Is this odd behaviour intentional?

Richard

What platform are you using? That sounds like something I would
expect on linux. Certainly, I just tested this myself on WinXP and I
got the behaviour you desired.

I think the reason for this is that it allows you to select only those
elements you want to select (in case selecting an item triggers code
that you wish to avoid).

Also, imagine you are unable to use a mouse, and you wish to use the
keyboard interface to select multiple entries from a ListBox with
wx.LB_EXTENDED. With the behaviour you are seeing, I expect you can
hit some key combination (perhaps Ctrl-Space) and select/deselect
entries as you wish. Whereas I, on Windows, can select contiguous
groups (by holding Shift and moving up or down), but I can't figure
out any way to select arbitrary entries.

HTH :slight_smile:

···

On 09/02/06, Richard Terry <rterry@internode.on.net> wrote:

I just noticed, that when one clicks on the listbox item, and then uses the up
and down arrow keys to move through the list, the highlighted line remains on
the row you first clicked on, and the row being moved to just has a dotted
line around it as you move up and down the list.

Is this odd behaviour intentional?

--
John.

> I just noticed, that when one clicks on the listbox item, and then uses
> the up and down arrow keys to move through the list, the highlighted line
> remains on the row you first clicked on, and the row being moved to just
> has a dotted line around it as you move up and down the list.
>
> Is this odd behaviour intentional?

What platform are you using?

Linux, anyway, out of frustration I just used a wx.ListCtrl with single
column.

Regards

Richard

···

On Thursday 09 February 2006 14:34, John Fouhy wrote:

On 09/02/06, Richard Terry <rterry@internode.on.net> wrote:

That sounds like something I would
expect on linux. Certainly, I just tested this myself on WinXP and I
got the behaviour you desired.

I think the reason for this is that it allows you to select only those
elements you want to select (in case selecting an item triggers code
that you wish to avoid).

Also, imagine you are unable to use a mouse, and you wish to use the
keyboard interface to select multiple entries from a ListBox with
wx.LB_EXTENDED. With the behaviour you are seeing, I expect you can
hit some key combination (perhaps Ctrl-Space) and select/deselect
entries as you wish. Whereas I, on Windows, can select contiguous
groups (by holding Shift and moving up or down), but I can't figure
out any way to select arbitrary entries.

HTH :slight_smile:

--
John.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org