Don't create multiple parent-less top level frames in layout sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 May 2013 23:21:21 +0000 (23:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 May 2013 23:21:21 +0000 (23:21 +0000)
commit438959cca892a7651634cc3a7aad4819ac49b23c
treeefc7e1f3a85958891a35c65047098365dcff4249
parent1054bcb21f76fc28e4cecec71179758497f9c384
Don't create multiple parent-less top level frames in layout sample.

This resulted in unexpected behaviour if the main frame was closed while the
other ones were still shown as they remained shown and had to be hunted and
closed one by one to make the application exit.

Fix this simply by creating all the other frames as children of the main one.
This also results in better UI when minimizing and restoring the main frame.

Also get rid of unused position parameters in child frame constructors and get
rid of the title parameter which is not really needed as it's always the same
too.

See #11923.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/layout/layout.cpp
samples/layout/layout.h