Closed jimorc closed 1 year ago
Further to this, if the second layout_panel is placed inside a third vertical_layout_panel, the event is still only raised twice.
Indeed, it is the propagation of events in the wxWidgets backend, which is a problem. I put a filter to suppress this propagation of events. But after rereading the documentation of wxWidgets, I realize that this is not the right way to do it.
I'm going to make a POC to check the right way to block this propagation. If this one is conclusive, I will correct the events in xtd.
Describe the bug
In the program listing below, a combo_box is placed inside a vertical_layout_panel. That panel is placed inside another vertical_layout_panel. When the dropdown list is opened, the drop_down event is raised twice.
If the combo_box is inside a vertical_layout_panel which is NOT placed inside a second layout_panel, then the event is raised once.
To Reproduce
Steps to reproduce the behavior:
Expected behaviour
The drop_down event should only be raised once.
Screenshots
N/A
Desktop (please complete the following information)
Workaround
None