Re: Disabling "display on demand" for hidden panes in switchable-layout?
On Saturday 04 April 2009 3:28:12 am Mikko Ahonen wrote:
>
> Hello,
>
> Does anybody know whether there is a simple method to disable "display
> on demand" for hidden panes in switchable layout?
I don't know the exact answer to your question, but some ideas pop into mind:
a ) try setting :combine-child-constraints t and see if that does enough of the work up-front
b ) look at tab-layout and see if :selection-callback will allow you to set the description to something that you've cached
c ) you can probably create your own switchable / tab layout by using hide-pane and show-pane, e.g. use a pinboard layout, with a bunch of overlapping layouts / panes, show-pane all of them at first to get capi to calculate them, then hide all but one
d ) drop into gp: and use pixmap ports and make-image-from-port to make a "screen capture" of the layout, then construct your switchable layout using image-pinboard-objects with the images bound to the already-cached pixmaps (I actually use this trick to grab a snapshot of a PDF rendering (very slow) done by a library DLL and use it as a background for the operations of a PDF page-layout tool - ask me if you need more details).
pt