Hi,

I've created a Wx::ListView using:

$self->rss_list(Wx::ListView->new($self, -1, wxDefaultPosition, [660, 260], wxLC_REPORT|wxLC_SINGLE_SEL|wxLC_HRULES));

EVT_LIST_ITEM_SELECTED($self, $self->rss_list, \&OnSelectRSSList);
EVT_LIST_ITEM_ACTIVATED($self, $self->rss_list, \&OnActivateRSSList);

I want to create a ListView that looks like a common Windows ListView (like the one displayed by Windows Explorer in detail view).

I don't know how the list I created looks exactly, but something's not right with it.

When I select the list items one by one, this event is handled well and when I double-click or press enter on a list item the event is also handled well.

But if I press space on a selected list item, or even Alt+Space (for opening the system menu), this also triggers the EVT_LIST_ITEM_ACTIVATED event, and I don't want this.

Do I need to use other Wx::ListView styles? Is it possible to create a ListView that works like the one in Windows Explorer?

Or can I detect if Alt+Space or just space was pressed in the event handler and return without doing anything?

Thank you.

Octavian

Reply via email to