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

Re: Getting information from EVT_LIST_ITEM_RIGHT_CLICK

Thread Previous | Thread Next
Dave Hayes
February 1, 2013 20:51
Re: Getting information from EVT_LIST_ITEM_RIGHT_CLICK
Message ID:
On 02/01/13 12:24, wrote:
> Actually, I'm quite interested in this discussion too.  I'm having
> difficulty distinguishing between EVT_LIST_ITEM_SELECTED and
> If the user single-clicks (EVT_LIST_ITEM_SELECTED), then I want the user to
> enter an event handler dialogue that presents options with defaults.
> If the user presses double-clicks (EVT_LIST_ITEM_ACTIVATED), then I want the
> user to enter an event handler without a dialogue that takes the defaults
> automatically.
> What I get with single or double click, is that single click is always
> entered.

As a workaround until someone can investigate properly, have you tried 
setting a timer event in the single click event? If the event fires 
again, then cancel the timer and do your double click action. If it 
doesn't, then when the timer expires do your single click action.

I bet this is because you somehow need to call $event->Skip(1) so the 
double click event can have a chance. Take that with a grain of salt; 
I'm fairly new to wxperl.
Dave Hayes - Consultant - Altadena CA, USA -
 >>>> *The opinions expressed above are entirely my own* <<<<

The net poses a fundamental threat not only to the authority
of the government, but to all authority, because it permits
people to organize, think, and influence one another without
any institutional supervision whatsoever.
                             - John Seabrook "My First Flame"

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About