WindowSetSizer

Help Contents GUI programming WindowSet WindowSetSizer
WindowSetSize WindowSetSizerAndFit

WindowSetSizer window sizer


Sets the window to have the given layout sizer. The window will then own the object, and will take care of its deletion. If an existing layout constraints object is already owned by the window, it will be deleted if the deleteOld parameter is true.

Note that this function will also call SetAutoLayout implicitly with true parameter if the sizer is non-NULL and false otherwise.

Parameters

sizer: The sizer to set. Pass NULL to disassociate and conditionally delete the window's sizer. See below.

WindowSetSize WindowSetSizerAndFit