34 As an ever greater variety of mobile hardware comes to market, it becomes more imperative for wxWidgets applications to adapt
35 to these platforms without putting too much burden on the programmer. One area where wxWidgets can help is in adapting
36 dialogs for the lower resolution screens that inevitably accompany a smaller form factor. wxDialog therefore supplies
37 a global #wxDialogLayoutAdapter class that implements automatic scrolling adaptation for most sizer-based custom dialogs.
38 Many applications should therefore be able to adapt to small displays with little or no work, as far as dialogs are concerned.
39 By default this adaptation is off. To switch scrolling adaptation on globally in your application, call the static function
40 wxDialog::EnableLayoutAdaptation passing @true. You can also adjust adaptation on a per-dialog basis by calling
41 wxDialog::SetLayoutAdaptationMode with one of @c wxDIALOG_ADAPTATION_MODE_DEFAULT (use the global setting), @c wxDIALOG_ADAPTATION_MODE_ENABLED or @c wxDIALOG_ADAPTATION_MODE_DISABLED.
42 The last two modes override the global adaptation setting.
43 With adaptation enabled, if the display size is too small for the dialog, wxWidgets (or rather the
44 standard adapter class wxStandardDialogLayoutAdapter) will
45 make part of the dialog scrolling, leaving standard buttons in a non-scrolling part at the bottom of the dialog.
46 This is done as follows, in wxDialogLayoutAdapter::DoLayoutAdaptation called from within wxDialog::Show or wxDialog::ShowModal:
76 The dialog implementation makes assumptions about the window hierarchy, for example getting the parent of a control and casting to the dialog class.
77 The dialog does custom painting and/or event handling not handled by the scrolled window. If this problem can be solved globally,
78 you can derive a new adapter class from wxStandardDialogLayoutAdapter and override its CreateScrolledWindow function to return an instance of your own class.
79 The dialog has unusual layout, for example a vertical sizer containing a mixture of standard buttons and other controls.
80 The dialog makes assumptions about the sizer hierarchy, for example to show or hide children of the top-level sizer. However, the original sizer hierarchy will still hold
97 Adaptation for wxPropertySheetDialog is always done by simply making the pages scrollable, since wxDialog::GetContentWindow returns
98 the dialog's book control and this is handled by the standard layout adapter.
99 wxWizard uses its own CanDoLayoutAdaptation and DoLayoutAdaptation functions rather than the global adapter: again, only the wizard pages are made scrollable.