develooper Front page | perl.wxperl.users | Postings from March 2013

Re: Getting information from EVT_LIST_ITEM_RIGHT_CLICK

Thread Previous | Thread Next
From:
Dave Hayes
Date:
March 5, 2013 20:14
Subject:
Re: Getting information from EVT_LIST_ITEM_RIGHT_CLICK
Message ID:
51365221.4050507@jetcafe.org
On 02/04/13 19:45, Mark Dootson wrote:
> Hi,
>
> A small update to previous code. On wxGTK EVT_LIST_ITEM_RIGHT_CLICK
> events are generated even if a right click in the wxListCtrl is not on
> an item. Amended attachment handles this.
>

I've run into a bug with your implementation.

If you add enough columns to invoke the horizontal scrollbar, this 
breaks what you wrote. Instead, columns will be reported with 0 being 
the visible scrolled column, which is not the actual column.

Googling around a bit seems to indicate that it's impossible to get a 
scroll event from a ListCtrl at 2.8. So how would I detect that the 
ListCtrl is scrolled horizontally?
-- 
Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org
 >>>> *The opinions expressed above are entirely my own* <<<<

"I'll have you hanged, if you don't prove that you are a
mystic." said a cruel and ignorant king who had heard of
Nasrudin's powers. "I see strange things," said Nasrudin at
once. "A golden bird in the sky, demons under the earth."
The king asked "But how can you see through solid objects?
How can you see far into the sky?"
Nasrudin replied, "Fear is all you need."

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About