Table of Contents

Sizers

Automatically manage resizing controls


include file: wxSizer.e

Sizers take care of resizing and repositioning controls within a window whenever the window is resized. Sizers may be nested within each other to create complex relationships between the controls in a window.

The most common sizer used will be the wxBoxSizer.

  • proc add_sizer_to_sizer( atom sizer1, atom sizer2, atom option, atom flag, atom border )   
  • proc add_window_to_sizer( atom sizer, atom window, atom option, atom flag, atom border )   
  • func fit_window( atom sizer, atom window )   
  • proc set_sizer( atom window, atom sizer )   
  • proc space_sizer( atom sizer, atom width, atom height, atom option, atom flag, atom border)     
     
    Subtopics:
  • wxBoxSizer
  • wxFlexGridSizer
  • wxGridSizer
  • wxNotebookSizer
  • wxSplitterWindow
  • wxStaticBoxSizer


    Table of Contents

    [proc]
    add_sizer_to_sizer
    ( atom sizer1, atom sizer2, atom option, atom flag, atom border )

    Category: Sizers

    This adds sizer2 to sizer1.

    See Also: add_window_to_sizer, fit_window, set_sizer, space_sizer



    Table of Contents

    [proc]
    add_window_to_sizer
    ( atom sizer, atom window, atom option, atom flag, atom border )

    Category: Sizers

    This adds the specified window (i.e., control) to the sizer.

    See Also: add_sizer_to_sizer, fit_window, set_sizer, space_sizer



    Table of Contents

    [func]
    fit_window
    ( atom sizer, atom window )

    Category: Sizers

    Tell the sizer to resize the window to match the sizer's minimal size. Returns the new size.

    See Also: add_sizer_to_sizer, add_window_to_sizer, set_sizer, space_sizer



    Table of Contents

    [proc]
    set_sizer
    ( atom window, atom sizer )

    Category: Sizers

    This must be called before a sizer will resize its children. window is the parent window of the controls to be resized. The sizer will resize and reposition its children based on window.

    See Also: add_sizer_to_sizer, add_window_to_sizer, fit_window, space_sizer



    Table of Contents

    [proc]
    space_sizer
    ( atom sizer, atom width, atom height, atom option, atom flag, atom border)

    Category: Sizers

    Adds a blank region to the sizer in order to space controls within a sizer.

    See Also: add_sizer_to_sizer, add_window_to_sizer, fit_window, set_sizer