Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing tabview on Linux makes app crash #34

Open
Shallowmallow opened this issue Dec 21, 2022 · 0 comments
Open

Removing tabview on Linux makes app crash #34

Shallowmallow opened this issue Dec 21, 2022 · 0 comments

Comments

@Shallowmallow
Copy link
Contributor

Shallowmallow commented Dec 21, 2022

Current Behavior

It crashes

#1  0x000055555643c42b in wxBookCtrlBase::DeletePage(unsigned long) ()
#2  0x00005555563ff967 in wxNotebook::DeleteAllPages() ()
#3  0x00005555563ffee8 in wxNotebook::~wxNotebook() ()

Possible Solution

I have no idea. But a workaround is to hide the tabview instead.

Test app / minimal test case

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.

Your Environment

MxLinux 22
wxwidgets 3.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant