Help with Window placement...

10 views
Skip to first unread message

Anant Vemuri

unread,
Mar 8, 2010, 5:09:30 AM3/8/10
to fw4spl-discuss
Hi,

I needed some help with the management of the multi view window. I
use this in my config

<service uid="multiViewWindow" type="::gui::view::IView"
implementation="::gui::view::MultiView" autoComChannel="no" >

<views>
<view uid="GenericScene0" align="center"
minWidth="500" resizable="no" autoStart="yes" position="0"/>
<view uid="GenericScene1" align="right" minWidth="500"
resizable="no" autoStart="yes" position="0"/>
<view uid="seqPlayer" align="bottom" minHeight="80"
resizable="no" autoStart="yes" />
</views>

</service>

However, everytime I run it the size of the window with
uid="GenericScene1" is small and not of the same size as window with
uid="GenericScene0". Is there a way I can fix the size, so that they
increase propotionately?

Thank you.
Anant.

Julien Waechter

unread,
Mar 8, 2010, 5:45:28 AM3/8/10
to fw4spl-...@googlegroups.com
Hello,

uid="GenericScene1" is small and not of the same size as window with uid="GenericScene0". 

It's normal, gui::view::MultiView manages views with a wxAuiManager. It's a specific wxWidgets layout.
So, right panel doesn't have necessarily the same size as the center panel.

A solution is to use a gui::view::MultiSizerView, it's a layout with a simple wxBoxSizer.

<service uid="multiViewWindow" type="::gui::view::IView" implementation="::gui::view::MultiView" autoComChannel="no" >
    <views>
        <view uid="multiSizerWindow" align="center" minWidth="500" resizable="no" autoStart="yes" />
        <view uid="seqPlayer" align="bottom" minHeight="80" resizable="no" autoStart="yes" />
    </views>
</service>

<service uid="multiSizerWindow" type="::gui::view::IView" implementation="::gui::view::MultiSizerView" autoComChannel="no" >
    <views orientation="horizontal" >
        <view uid="GenericScene0" proportion="1" autoStart="yes" />
        <view uid="GenericScene1" proportion="1" autoStart="yes" />
    </views>
</service>

Cheers,

Julien


2010/3/8 Anant Vemuri <anant...@gmail.com>

Anant Vemuri

unread,
Mar 8, 2010, 6:11:47 AM3/8/10
to fw4spl-discuss
Thank you Julien, I did not notice the MutiSizerView bundle. That
works perfectly.

On Mar 8, 6:45 pm, Julien Waechter <julien.waech...@gmail.com> wrote:
> > Hello,
>
> uid="GenericScene1" is small and not of the same size as window
>
> > with uid="GenericScene0".
>
> It's normal, gui::view::MultiView manages views with a

> wxAuiManager<http://docs.wxwidgets.org/trunk/classwx_aui_manager.html>.


> It's
> a specific wxWidgets layout.
> So, right panel doesn't have necessarily the same size as the center panel.
>
> A solution is to use a gui::view::MultiSizerView, it's a layout with a

> simple wxBoxSizer <http://docs.wxwidgets.org/trunk/classwx_box_sizer.html>.


>
> <service uid="multiViewWindow" type="::gui::view::IView"
>
> > implementation="::gui::view::MultiView" autoComChannel="no" >
>
>     <views>
>
>         <view uid="multiSizerWindow" align="center" minWidth="500"
>
> > resizable="no" autoStart="yes" />
>
>         <view uid="seqPlayer" align="bottom" minHeight="80" resizable="no"
>
> > autoStart="yes" />
>
>     </views>
>
> </service>
>
> > <service uid="multiSizerWindow" type="::gui::view::IView"
> > implementation="::gui::view::MultiSizerView" autoComChannel="no" >
>
>     <views orientation="horizontal" >
>
>         <view uid="GenericScene0" proportion="1" autoStart="yes" />
>
>         <view uid="GenericScene1" proportion="1" autoStart="yes" />
>
>     </views>
>
> </service>
>
> Cheers,
>
> Julien
>

> 2010/3/8 Anant Vemuri <anantvem...@gmail.com>

Reply all
Reply to author
Forward
0 new messages