StatusBar influences layout

Indeed.

The information I am missing is like "does the layout algorithm apply to a
single item at a time or to the whole hierarchy of its descendants?", and if
yes "is this process top-down or bottom-up?"; "when do layout updates take
place?", "are there events triggered in relation with layout changes" or
"any relation with the Update method?"...

I want to implement Dialog Boxes that optimize the placement of controls for
the given frame size, and I need to understand if I can rely on the
available algorithms or if I need to adapt them.

  Yves

···

-----Original Message-----
From: Werner F. Bruhin [mailto:werner.bruhin@free.fr]
Sent: mardi 26 juillet 2005 13:52
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] StatusBar influences layout

Hi Yves,

Yves Daoust wrote:

No, I didn't know about it. Thanks for the pointer.

I think I would get a clearer view with a description of what the
Layout function is actually doing. Any reference to that ?

wxWindow::Layout
void Layout()
Invokes the constraint-based layout algorithm or the sizer-based
algorithm for this window.
See wxWindow::SetAutoLayout: when auto layout is on, this function gets
called automatically when the window is resized.

The wxPython doc or the wxPython API doc is often very helpful :wink:

See you
Werner

Yves

-----Original Message-----
From: Adi J. Sieker [mailto:ml@adsworth.info]
Sent: mardi 26 juillet 2005 13:13
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] StatusBar influences layout

Hi,

I don't know if you know about this Page but it explains the wx Sizers,
or at least the basics you need to know about Sizer.

http://wiki.wxpython.org/index.cgi/UsingSizers

adi

Am Tue, 26 Jul 2005 12:14:26 +0200 schrieb Yves Daoust ><yves.daoust@tiscali.be>:

Adi,

I can live with that, thanks a lot for the hint.

Windows layout is still full of mysteries to me...

Yves

-----Original Message-----
From: Adi J. Sieker [mailto:ml@adsworth.info]
Sent: mardi 26 juillet 2005 12:08
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] StatusBar influences layout

Hi,

I know this doesn't really answer your question, but why not use
sizers.
You
then don't have to take care about the size events. Attached is your
script
rewritten to use sizers.

adi

Am Tue, 26 Jul 2005 00:11:01 +0200 schrieb Yves Daoust >><yves.daoust@tiscali.be>:

Python 2.4.1
wxPython 2.6
Windows XP
  Hi,
I am trying to understand a strange layout problem that occurs with a
splitter window. In the attached sample, the intent is to have two
panes that are resized along with the main window. In particular,
they adjust themselves when the
main window is maximized.
Now, if you add a status bar, as can be done by uncommenting line 26,
the
two panes remain unchanged upon window maximization. Otherwise resizing
the
main window is ok.
I'd be very glad if someone could explain me this behavior. Is there
anything wrong with my code ?
  Yves Daoust

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Indeed.

The information I am missing is like "does the layout algorithm apply to a
single item at a time or to the whole hierarchy of its descendants?", and if
yes "is this process top-down or bottom-up?"; "when do layout updates take
place?", "are there events triggered in relation with layout changes" or
"any relation with the Update method?"...

I want to implement Dialog Boxes that optimize the placement of controls for
the given frame size, and I need to understand if I can rely on the
available algorithms or if I need to adapt them.

You really don't need to know most of the details to use sizers -
thats what they're for, so you don't need to mess around with doing
that stuff manually. Exactly what happens is quite complicated and
depends on a number of factors, like exactly what kind of layout you
asked for (Layout() vs Fit() for example). Reading the wxSizer
overview and the pages on both the wxWidgets and the wxPython wiki
will help. But the best way is to use XRCed or one of the other dialog
editors and experiment with them. Working with some layouts in a live
shell can be very enlightning as well.

···

On 7/26/05, Yves Daoust <yves.daoust@tiscali.be> wrote:

        Yves

-----Original Message-----
From: Werner F. Bruhin [mailto:werner.bruhin@free.fr]
Sent: mardi 26 juillet 2005 13:52
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] StatusBar influences layout

Hi Yves,

Yves Daoust wrote:

>No, I didn't know about it. Thanks for the pointer.
>
>I think I would get a clearer view with a description of what the
>Layout function is actually doing. Any reference to that ?
>
>
wxWindow::Layout
void Layout()
Invokes the constraint-based layout algorithm or the sizer-based
algorithm for this window.
See wxWindow::SetAutoLayout: when auto layout is on, this function gets
called automatically when the window is resized.

The wxPython doc or the wxPython API doc is often very helpful :wink:

See you
Werner

> Yves
>
>-----Original Message-----
>From: Adi J. Sieker [mailto:ml@adsworth.info]
>Sent: mardi 26 juillet 2005 13:13
>To: wxPython-users@lists.wxwidgets.org
>Subject: Re: [wxPython-users] StatusBar influences layout
>
>
>Hi,
>
>I don't know if you know about this Page but it explains the wx Sizers,
>or at least the basics you need to know about Sizer.
>
>http://wiki.wxpython.org/index.cgi/UsingSizers
>
>adi
>
>
>Am Tue, 26 Jul 2005 12:14:26 +0200 schrieb Yves Daoust > ><yves.daoust@tiscali.be>:
>
>
>
>> Adi,
>>
>>I can live with that, thanks a lot for the hint.
>>
>>Windows layout is still full of mysteries to me...
>>
>> Yves
>>
>>-----Original Message-----
>>From: Adi J. Sieker [mailto:ml@adsworth.info]
>>Sent: mardi 26 juillet 2005 12:08
>>To: wxPython-users@lists.wxwidgets.org
>>Subject: Re: [wxPython-users] StatusBar influences layout
>>
>>
>>Hi,
>>
>>I know this doesn't really answer your question, but why not use
>>sizers.
>>You
>>then don't have to take care about the size events. Attached is your
>>script
>>rewritten to use sizers.
>>
>>adi
>>
>>
>>Am Tue, 26 Jul 2005 00:11:01 +0200 schrieb Yves Daoust > >><yves.daoust@tiscali.be>:
>>
>>
>>
>>>Python 2.4.1
>>>wxPython 2.6
>>>Windows XP
>>> Hi,
>>>I am trying to understand a strange layout problem that occurs with a
>>>splitter window. In the attached sample, the intent is to have two
>>>panes that are resized along with the main window. In particular,
>>>they adjust themselves when the
>>>main window is maximized.
>>>Now, if you add a status bar, as can be done by uncommenting line 26,
>>>the
>>>two panes remain unchanged upon window maximization. Otherwise resizing
>>>the
>>>main window is ok.
>>>I'd be very glad if someone could explain me this behavior. Is there
>>>anything wrong with my code ?
>>> Yves Daoust
>>>
>>>