If you have a table in your app, you will have a popup
ASSERT INFO:
../src/gtk/window.cpp(2479): assert "m_wxwindow" failed in AddChildGTK(): Cannot add a child to a window without a client area
The problem is the "button-label" of the columns.
Somehow the static text cannot be added to hx widget buttons because they are a "window without a client area".
Possible solutions
Find a way to distinguish " a window" from " a window without a client area". ( wasn't able to, thought about the client size but it was useless
Don't create windows for pure haxeeui components ?
( In fact the header is never used as a normal component, so if we can escape the createWindow for columns)
remove the problematic components as they are useless before the creation ?
Current Behavior
If you have a table in your app, you will have a popup ASSERT INFO: ../src/gtk/window.cpp(2479): assert "m_wxwindow" failed in AddChildGTK(): Cannot add a child to a window without a client area
BACKTRACE: [1] wxWindow::AddChildGTK(wxWindow) [2] wxStaticText::Create(wxWindow, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&) [3] __libc_start_main [4] _start
Ugly fix
Add
if ("" + id == "button-label") return;
at the beginning https://github.com/haxeui/haxeui-hxwidgets/blob/7789797469f4ecce0cb43f4ace3be67b217bc92c/haxe/ui/backend/ComponentImpl.hx#L109Reasons
The problem is the "button-label" of the columns. Somehow the static text cannot be added to hx widget buttons because they are a "window without a client area".
Possible solutions