Lisp HUG Maillist Archive

Disabling "display on demand" for hidden panes in switchable-layout?

Hello,

Does anybody know whether there is a simple method to disable "display
on demand" for hidden panes in switchable layout?

My layout takes quite a while to draw, and drawing it only after user
pushes the button to activate the tab the first time confuses the
user.

I would like to do all the necessary calculations for the pane at
startup while splash screen displays.

Is there a simple way to do that?

Best regards,

Mikko


Re: Disabling "display on demand" for hidden panes in switchable-layout?

Answering myself:

:combine-child-constraints t

Regards,

Mikko

On Sat, Apr 4, 2009 at 10:28 AM, Mikko Ahonen <mikko.ahonen@iki.fi> wrote:
> Hello,
>
> Does anybody know whether there is a simple method to disable "display
> on demand" for hidden panes in switchable layout?
>
> My layout takes quite a while to draw, and drawing it only after user
> pushes the button to activate the tab the first time confuses the
> user.
>
> I would like to do all the necessary calculations for the pane at
> startup while splash screen displays.
>
> Is there a simple way to do that?
>
> Best regards,
>
> Mikko
>


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

Re: Disabling "display on demand" for hidden panes in switchable-layout?

Hello,

Thanks for your ideas.

Option a) works and thus prevents me from the need to try the more
cumbersome options.

My guess is that b) would not work, because panes are not "calculated"
until needed although they are in the description of
switchable-layout.

The PDF idea sounds interesting, it is always interesting to hear
about novel ways to solve problems...

Regards,

Mikko

On Sat, Apr 4, 2009 at 7:03 PM, Paul Tarvydas
<tarvydas@visualframeworksinc.com> wrote:
> 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


Updated at: 2020-12-10 08:41 UTC