This may just be that I'm not reading the documentation closely enough, however if I understand correctly, the "border" layout style allows five sections -- north, south, east, west and center -- and they should work together.
So, this piece of code should show a red box on top, with the bottom divided evenly between a green box on the left and a blue box on the right.
Instead I get a single blue box that fills the entire frame. Any ideas? Thanks!
Code: Select all
(load (append (env "NEWLISPDIR") "/guiserver.lsp"))
(gs:init)
(gs:set-trace true)
(gs:set-look-and-feel "javax.swing.plaf.metal.MetalLookAndFeel")
(gs:frame 'main 100 100 512 512 "Layout Test")
(gs:set-border-layout 'main)
(gs:panel 'i1 100 100) (gs:set-color 'i1 1 0 0)
(gs:panel 'i2 100 100) (gs:set-color 'i2 0 1 0)
(gs:panel 'i3 100 100) (gs:set-color 'i3 0 0 1)
(gs:add-to 'main 'i1 'north 'i2 'west 'i3 'east)
(gs:set-visible 'main true)
(gs:listen)