freenode/#clim - IRC Chatlog
Search
13:58:23
Gnuxie[m]
is it possible for the panes in a layout to be dynamic, ie, instead of switching the behaviour of a pane by having some logic in the display function, you instead just swap which pane is being displayed in that place in the application frame layout?
14:06:51
scymtym
Gnuxie[m]: the simplest way to do this is having multiple layouts and switching between them. this is, of course, not very attractive for multiple variants of a complex layout that only differ in a small detail. so another way would be to use a pane as a container and programmatically replace its child
14:08:14
scymtym
this is an example that's probably at the boundary of practicality of the layout-based approach: https://github.com/McCLIM/McCLIM/blob/master/Apps/Clouseau/src/application.lisp#L50
14:08:51
scymtym
and the corresponding command: https://github.com/McCLIM/McCLIM/blob/master/Apps/Clouseau/src/application.lisp#L116
14:14:35
Gnuxie[m]
right I see, that's interesting, thanks, I'll have to investigate composite panes a bit