Open kencamargo opened 2 weeks ago
I see what the problem is. Without a top level sizer for a wxNotebook or wxPanel, wxWidgets won't be able to automatically size/resize child controls based on their size and possible scale factor (currently that only affects Windows, but will presumably affect Linux at some point). By default, wxUiEditor insists on a sizer as a parent for the controls you are trying to add. While that's generally a good idea, wxWidgets does not require it and it certainly should not be required when importing. I can certainly change that for importing, and perhaps relax the sizer requirement for books and panels.
Thanks a lot!
Description:
When importing a wxs layout file, I got the following errors:
Unable to create wxBitmapButton as a child of wxNotebook Unable to create wxButton as a child of wxNotebook Unable to create wxButton as a child of wxPanel Unable to create wxGrid as a child of wxNotebook Unable to create wxStaticText as a child of wxNotebook Unable to create wxTextCtrl as a child of wxNotebook
Those work without problems in wxSmith, though. Couldn't attach the file, copying it below:
<?xml version="1.0" encoding="utf-8" ?>