Open Shallowmallow opened 1 year ago
It crashes
#1 0x000055555643c42b in wxBookCtrlBase::DeletePage(unsigned long) () #2 0x00005555563ff967 in wxNotebook::DeleteAllPages() () #3 0x00005555563ffee8 in wxNotebook::~wxNotebook() ()
I have no idea. But a workaround is to hide the tabview instead.
import haxe.ui.containers.VBox; import haxe.ui.events.MouseEvent; @:xml(' <vbox width="100%" height="100%"> <button id="button" text="remove tab"/> <tabview id="tab" width="100%" height="100%"> <vbox id="text_editor_tab" text ="TEXT_PREVIEW" width="100%" height="100%"> </vbox> </tabview> </vbox>') class A003 extends VBox { @:bind(button, MouseEvent.CLICK) private function removeTab(e) { removeComponent(tab); } }
Clicking on the button makes the app crash.
MxLinux 22 wxwidgets 3.2.1
Current Behavior
It crashes
Possible Solution
I have no idea. But a workaround is to hide the tabview instead.
Test app / minimal test case
Clicking on the button makes the app crash.
Your Environment
MxLinux 22 wxwidgets 3.2.1