Double Click event caught every other double click

Double Click event caught every other double click

Post by jayson.dol » Sun, 29 Oct 2006 03:07:26

I'm using wxGTK-2.7.0. I'm trying to catch doubleclick events on a
wxCheckListBox:
...
...
EVT_LISTBOX_DCLICK(wxID_ANY, PCC_wxCheckListBox::OnDClicked)
...
...
void PCC_wxCheckListBox::OnDClicked(wxCommandEvent &event)
{
cerr << "Caught dclick event for index " << event.GetSelection() <<
endl;
}

But when running my program my output is showing only every other time
that I double click. Anyone have any ideas?

 
 
 

Double Click event caught every other double click

Post by rober » Sun, 29 Oct 2006 04:37:58


Do you also see that in the checklst sample?

Robert



---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM

 
 
 

Double Click event caught every other double click

Post by jayson.dol » Sun, 29 Oct 2006 04:50:57

Yes I do. To make a correction, if I make a single click (or double
click) between two double clicks then the event will be caught.

As an example:
Start checklst example
double click on item 1: focuses item (without double click event being
caught)
double click on item 1 again: double click event caught
double click on item 1 again: nothing happens
double click on item 1 again: double click event caught
single click on item 1: nothing happens (as expected)
double click on item 1: double click event caught
double click on item 1 again: nothing happens
double click on item 1 again: double click event caught
...
...

So it seems it needs a single or double click in between for the event
to be triggered. Also, it seems not to catch the double click event if
the item was not selected prior to the double click.

I have not tried this on Windows or mac yet.
 
 
 

Double Click event caught every other double click

Post by rober » Sun, 29 Oct 2006 07:16:35


I have rewritten most of the event handling in wxListBox
two days ago and I cannot see anything wrong right now.
You could test CVS as a whole or just the files affected
to see if it works,

Robert



---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM