The Switcher layout manager automatically arranges its child windows such that one of them is placed on top; all other child windows are hidden. Switcher provides a convenient method to conserve screen real-estate by arranging several GUI panels to appear in the same space, depending on context. Switcher ignores all layout hints from its children:- all children are stretched according to the switcher layout managers own size. When the SWITCHER_HCOLLAPSE or SWITCHER_VCOLLAPSE options are used, Switcher's default size is based on the width or height of the current child, instead of the maximum width or height of all of the children.
Construct a switcher layout manager.
Argument | Type | Default | Description |
p | FXComposite | ||
opts | Int | 0 | |
x | Int | 0 | |
y | Int | 0 | |
w | Int | 0 | |
h | Int | 0 | |
pl | Int | DEFAULT_SPACING | |
pr | Int | DEFAULT_SPACING | |
pt | Int | DEFAULT_SPACING | |
pb | Int | DEFAULT_SPACING |
Bring the child window at index to the top.
Argument | Type | Default | Description |
index | Int | ||
notify | Bool | False |
ID's that identify children of the switcher; these ID's can be used to set the current child by sending the switcher a message using MKUINT(id, SEL_COMMAND).
ID_OPEN_FIRST | ID for the 1st child. |
ID_OPEN_SECOND | ID for the 2nd child. |
ID_OPEN_THIRD | ID for the 3rd child. |
ID_OPEN_FOURTH | ID for the 4th child. |
ID_OPEN_FIFTH | ID for the 5th child. |
ID_OPEN_SIXTH | ID for the 6th child. |
ID_OPEN_SEVENTH | ID for the 7th child. |
ID_OPEN_EIGHTH | ID for the 8th child. |
ID_OPEN_NINETH | ID for the 9th child. |
ID_OPEN_TENTH | ID for the 10th child. |