When is it good to use a wxFrame versus a wxPanel?
I'm aware that a wxFrame may have any window placed on it, while a
wxPanel may be placed on any Window as well as have any control placed
on it.
If I declare a wxButton directly on a frame, it fills up the entire
Frame even when a size of say (20, 20) is specified. However, I'm
guessing that if a Panel was used, the control size would work as
expected.
I'm aware that a wxFrame may have any window placed on it, while a
wxPanel may be placed on any Window as well as have any control placed
on it.
Yes.
If I declare a wxButton directly on a frame, it fills up the entire
Frame even when a size of say (20, 20) is specified.
One of the behaviours of the wxFrame is that if it has only one child it will resize that child automatically to fill the entire client area of the frame.