Alle 09:12, martedì 30 gennaio 2007, giuseppe massimo bertani ha scritto:
Alle 21:25, lunedì 29 gennaio 2007, Robin Dunn ha scritto:
> Andrea Gavana wrote:
> > Hi Massimo,
> >
> >> what I desire is to be able to resize the center panes when more than
> >> one is
> >> opened, while now the panes are both not moveable (and this could be
> >> ok, since it's not terribly useful to move them) but neither
> >> resizable, despite
> >> the fact that AuiPaneInfo says the opposite
> >
> > I have no idea why it doesn't work. I have tried with a simple example
> > and indeed it's impossible to resize or to undock them. Curiously
> > enough, it works with PyAUI (development version). Maybe Robin can
> > share some comments on this.
>
> Sorry, I don't know either, however it's always been my impression that
> the center pane is not floatable, and that docking rules for the other
> panes are always relative to the center pane.
>
> When you say it is also not resizable do you mean that manipulating the
> sashes between it and the neighboring panes does not result in it being
> resized?the sashes between Centered and non-Centered panes works as expected, while
between Centered panes cannot move.> It's not behaving that way for me, so if yours does please
> tell us what is in your center pane?the center panes contain a AuiNotebook with 2 pages: the first one contains
another auinotebook, while the other an OGL window (see attachment)
If I open more panes like that, they will be stacked vertically, with no
way no resize them.>Does it have any sizers or min/max
>
> sizes set?Sure. Nested Vboxes and Hboxes. But if I place these panes in any other
direction, for instance Right, they resize as expected. Obviously in the
center of the frame remains a hole, that is ugly to see.
I'm quoting myself to add other observations:
I can see both in my app than in the demo (AUI_DockingWindowMgr.py) that the
center panes cannot be selected with the mouse: I click on their captions and
they remain grayed.
If I click into the embedded textctrl, they receive the input focus. If you
create 2 textboxes from the demo, this is easy to try.
Despite this, if I call FindFocus() from the managed window, no window is
returned. This become a problem when I want to save to disk the content of a
pane: which pane must be saved? the active one, but there aren't!
For Andrea: I've seen on your demo that, if you drag a pane near a main
frame's side, that side is evidenced.
I thought this behavior was a default, but this does not happen in my app:
could you tell me how you activated this effect?
Thanks you all
Massimo