Panel: gap

Syntax

gap <num>

Description

Gap specification. No panel is created.

Membership

Parameters

Switches

 None

Callbacks

None

Example

Create a panel window with three rows of buttons. Each button is separated from the next by 20 pixels. Each row is separated from the next by 5 pixels.

window w = wpanel {
    row {
        tl: button 'Top Left'; gap 20
        tm: button 'Top Middle'; gap 20
        tr: button 'Top Right'
    }
    gap 5
    row {
        lm: button 'Left Middle'; gap 20
        m: button 'Middle'; gap 20
        rm: button 'Right Middle'
    }
    gap 5
    row {
        bl: button 'Bottom Left'; gap 20
        bm: button 'Bottom Middle'; gap 20
        br: button 'Bottom Right'
    }
}