Here's the recipe for something I tried (I'll include the cdxml at the 
end, but it probably won't help).


Start up Class Designer.
Create Vertical Sizer with 3 slots
Insert a Button in middle slot
In top slot, add a new spacer (size = 10)
                 edit sizer setting for this spacer, set Proportion = 1
In bottom slot - do same as in top slot

[ at this point, it looks just like I'd expect - the button floats in 
the middle of the vertical height of the window, with two 'expanding', 
empty slots above and below it ]

Save it to a  file
Open the file
[ now it looks wrong - the spacers have shrunk to very small - their 
slot's proportion has reverted to 0, and the 'expand' has also been lost ]

Am I maybe setting the 'proportion' in the wrong place ?  But if so, why 
does it appear to work until it has been saved / re-read ?

btw - this is all with
> Platform: Win
> Python Version: 2.5.1 on win32
> Dabo Version: Version 0.8.4; Revision ~4760
> UI Version: 2.8.6.1 on wxMSW
>
and the cdxml is

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<dForm Caption="Dabo Class Designer" Top="5" Height="412" Width="604" 
designerClass="DesForm" Left="3">
    <dSizer SlotCount="1" designerClass="LayoutSizer" 
Orientation="Vertical">
        <dPanel sizerInfo="{'VAlign': 'Middle'}" designerClass="controlMix">
            <dSizer SlotCount="3" designerClass="LayoutSizer" 
Orientation="Vertical">
                <dPanel Spacing="10" sizerInfo="{'BorderSides': ['All'], 
'HAlign': 'Left', 'VAlign': 'Top', 'Border': 0}" 
designerClass="LayoutSpacerPanel"></dPanel>
                <dButton Caption="Button" sizerInfo="{}" 
designerClass="controlMix"></dButton>
                <dPanel Spacing="10" sizerInfo="{'BorderSides': ['All'], 
'HAlign': 'Left', 'VAlign': 'Top', 'Border': 0}" 
designerClass="LayoutSpacerPanel"></dPanel>
            </dSizer>
        </dPanel>
    </dSizer>
</dForm>


Thanks
-- Alex.







_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to