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

Allow a wxPanel to be placed directly in a wxFrame #786

Open
MichaelNZ85 opened this issue Sep 3, 2023 · 1 comment
Open

Allow a wxPanel to be placed directly in a wxFrame #786

MichaelNZ85 opened this issue Sep 3, 2023 · 1 comment

Comments

@MichaelNZ85
Copy link

MichaelNZ85 commented Sep 3, 2023

The way that wxFormBuilder currently works (Frame > Sizer > Panel) is not in line with the way the wxWidgets samples are laid out and it seems that most wxWidgets devs do not lay out their apps this way. It is not necessary for a Frame to have a Sizer because the only immediate child of a wxFrame will always be resized to fill the frame's whole client area.

Could you please make wxFormBuilder allow a panel to be directly placed in a wxFrame?

@MichaelNZ85 MichaelNZ85 changed the title Allow a wxPanel to be placed directly on a wxFrame Allow a wxPanel to be placed directly in a wxFrame Sep 3, 2023
@sodevel
Copy link
Member

sodevel commented Sep 12, 2023

According to the wxWidgets documentation, this is a special case only for toplevel elements. wxFB is strongly sizer based and i'm afraid with the current data model it is not possible to realize that without introducing weird side effects. I'm afraid a proper implementation would be quite time consuming, time i don't have available.

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

2 participants