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
wxSimpleHtmlListBox mouse clicks handling
-
- Experienced Solver
- Posts: 79
- Joined: Thu Sep 25, 2008 12:14 am