wxSimpleHtmlListBox mouse clicks handling

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Marcus Frenkel
Experienced Solver
Experienced Solver
Posts: 79
Joined: Thu Sep 25, 2008 12:14 am

wxSimpleHtmlListBox mouse clicks handling

Post by Marcus Frenkel » Tue May 04, 2010 10:22 am

Hi,

I have wxSimpleHtmlListBox connected with wxMouseEvent for Left Double Click on an item and wxHtmlLinkEvent for the links inside the html of an item.

The problem:
1) I have a X image at the end of each item, that represent a button for deleting the list item.
2) When I double click the item it openes dialog. When I click the X image it deletes the item. However, if I double click the item over the X image, it first deletes the item and then it opens the dialog.

How to prevent opening of the dialog if the double click is over a html link (in this case the X image)?

In the event function for the html link I don't have event.Skip() and I have tried with event.StopPropagation() without success. Any other way of stopping the double click event?

Marcus

Post Reply