Help with view modes

View: New views
2 Messages — Rating Filter:   Alert me  

Help with view modes

by Andrea Chiumenti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello, I ve created a new mode that is a left view

<!DOCTYPE mode PUBLIC
    "-//NetBeans//DTD Mode Properties 2.3//EN"
    "http://www.netbeans.org/dtds/mode-properties2_3.dtd">
<mode version="2.3">
    <module name="it.wingstech.gam3.anagraphics" spec="1.0"/>
    <name unique="Gam3LeftMode"/>
    <kind type="view"/>
    <state type="joined"/>
    <constraints>
        <path orientation="vertical" number="0" weight="0.2"/>
        <path orientation="horizontal" number="0" weight="0.3"/>
    </constraints>
    <empty-behavior permanent="true"/>
</mode>


now I'd like to split this left space vertically to have two rows. To do so Ive created anothe mode

<!DOCTYPE mode PUBLIC
    "-//NetBeans//DTD Mode Properties 2.3//EN"
    "http://www.netbeans.org/dtds/mode-properties2_3.dtd">
<mode version="2.3">
    <module name="it.wingstech.gam3.anagraphics" spec="1.0"/>
    <name unique="Gam3LeftModeBottom"/>
    <kind type="view"/>
    <state type="joined"/>
    <constraints>
       <path orientation="vertical" number="1" weight="0.5"/>      
    </constraints>
    <empty-behavior permanent="true"/>
</mode>


The problem is that the second mode is bottom but 100% window witdh.

How can I do to have a left view splitted in tow rows ?

Thanks in advance,
kiuma

Re: Help with view modes

by tomwheel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Kiuma,

I am no expert in the window system configuration file formats, but
I'll give you a tip in case nobody else can help you.

1. Start your application

2. Manually position some windows the way you want your mode to look.
This will create an anonymous mode.

3. Exit your application

4. Go look at config/Windows2Local/Modes under your userdir.  The
window system should have written out a configuration file for you, so
you can just use that as the basis for your new mode.

It's not a perfect solution, but often better than writing mode files by hand.


On Thu, Oct 29, 2009 at 2:16 AM, Andrea Chiumenti <kiuma72@...> wrote:

> hello, I ve created a new mode that is a left view
>
> <!DOCTYPE mode PUBLIC
>     "-//NetBeans//DTD Mode Properties 2.3//EN"
>     "http://www.netbeans.org/dtds/mode-properties2_3.dtd">
> <mode version="2.3">
>     <module name="it.wingstech.gam3.anagraphics" spec="1.0"/>
>     <name unique="Gam3LeftMode"/>
>     <kind type="view"/>
>     <state type="joined"/>
>     <constraints>
>         <path orientation="vertical" number="0" weight="0.2"/>
>         <path orientation="horizontal" number="0" weight="0.3"/>
>     </constraints>
>     <empty-behavior permanent="true"/>
> </mode>
>
>
> now I'd like to split this left space vertically to have two rows. To do so
> Ive created anothe mode
>
> <!DOCTYPE mode PUBLIC
>     "-//NetBeans//DTD Mode Properties 2.3//EN"
>     "http://www.netbeans.org/dtds/mode-properties2_3.dtd">
> <mode version="2.3">
>     <module name="it.wingstech.gam3.anagraphics" spec="1.0"/>
>     <name unique="Gam3LeftModeBottom"/>
>     <kind type="view"/>
>     <state type="joined"/>
>     <constraints>
>        <path orientation="vertical" number="1" weight="0.5"/>
>     </constraints>
>     <empty-behavior permanent="true"/>
> </mode>
>
>
> The problem is that the second mode is bottom but 100% window witdh.
>
> How can I do to have a left view splitted in tow rows ?
>
> Thanks in advance,
> kiuma
>



--
Tom Wheeler
http://www.tomwheeler.com/