Pascal Georges wrote:

Hi!

>     I stored this to slot 1, but Scid crashes upon startup
>     once it tries to build this up again. (No, it does not
>     really fit on the screen in docking mode at 1400x1050,
>     some windows are too thin. I just tried to see if it
>     would be possible at all. ;)
> 
> I changed in the above layout .fdockccWindow to
> .fdocktreeWin2 and it works. My guess is that there is
> something wrong in ccWindow, and I don't know what.

Hm, do you have some stub that shows how it is done
correctly? It is a bit difficult to fiddle out what needs to
be done from complex samples ;) I tried to do the same as
the tree window. But who knows, maybe this one is special.
Maybe I missed something?

[...]
>     the sizes of the docks seem not to restore properly. 
> 
> They don't. They request their own size, but there is some fight here. I 
> still have some work here ...

So you know the problem already. "Mission accomplished" :)

>     BTW: Would it be sensible to store window layouts in a
>     separate file? 
> 
> I prefer one single file.

Then it is however not possible (ok, it is easily possible
for a techi) to transport a layout.

>     BTW/2: I think I have added all stuff necessary to get
>     Correspondence Chess and Input Engine console to work as
>     docks as well. If I get it right I should just use
>     ::createToplevel and ::setTitle instead of the direct calls
>     to wm, while I should leave the usual calls for dialogues.
> 
> 
> Also look at
> ################################################################################
> # In the case of a window closed without the context menu in docked 
> mode, arrange for the tabs to be cleaned up
> # Alternative way : directly call ::docking::cleanup $w when closing window
> ################################################################################
> proc createToplevelFinalize {w} {
>   if { $::docking::USE_DOCKING } {
>     bind $w <Destroy> +[ namespace code "::docking::cleanup $w"]
>   }
> }

Hm, I admit that I do not get you point. I fear, you've to
spend another line of explanation. Should I hook in a

::createToplevelFinalize $w

somewhere? Should I hook it up with the <Destroy> event? Or
just call it somewhere after the ::createToplevel? Do I need
some method in my namespace to be called? What should it do
then?

-- 

Kind regards,                /                 War is Peace.
                             |            Freedom is Slavery.
Alexander Wagner            |         Ignorance is Strength.
                             |
                             | Theory     : G. Orwell, "1984"
                            /  In practice:   USA, since 2001

------------------------------------------------------------------------------
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to