So I'm going through the step by step guide. I've noticed a couple of
things. The only way I could change the caption of my buttons was
through the option of the context menu, if I changed them in the
properties editor it would have no effect and the change would not be
taken. This also happens with the name of the buttons. I finally changed
the name in the xml file, that worked.
What didn't work (not even changing the xml file) is to change the
sizer's proportion of the spacer between the Cancel and Close buttons to
one. No way, I change it and it changes in the design window but when I
save it, it is not changed in the xml file and when I run it, it will
run as if the proportion were 0.
Here's my "ClientForm.cdxml" file :
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<dForm CxnFile="..\db\ConsultHours.cnxml" Name="dForm" Caption="Clients"
SaveRestorePosition="False" Top="100" Height="446" Width="368"
designerClass="DesForm" CxnName="ConsultHours" Left="206">
<dSizer SlotCount="1" designerClass="LayoutSizer"
Orientation="Vertical">
<dPanel sizerInfo="{'Proportion': 1, 'HAlign': 'Center',
'VAlign':
'Middle', 'Expand': True}" designerClass="controlMix">
<dSizer SlotCount="2" designerClass="LayoutSizer"
Orientation="Vertical">
<dGridSizer HGap="5" sizerInfo="{'Proportion':
1, 'Expand': True}"
Rows="9" designerClass="LayoutGridSizer" VGap="3" MaxDimension="r"
Columns="2">
<dLabel Caption="Name"
sizerInfo="{'Proportion': 0, 'HAlign':
'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand': False,
'RowExpand': False}" designerClass="controlMix" rowColPos="(0, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0,
'HAlign': 'Center',
'ColExpand': True, 'VAlign': 'Middle', 'Expand': True, 'RowExpand':
False}" rowColPos="(0, 1)" designerClass="controlMix"
DataField="clientname" DataSource="clients"></dTextBox>
<dLabel Caption="Attn"
sizerInfo="{'Proportion': 0, 'HAlign':
'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand': False,
'RowExpand': False}" designerClass="controlMix" Name="dLabel1"
rowColPos="(1, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0,
'HAlign': 'Center',
'ColExpand': True, 'VAlign': 'Middle', 'Expand': True, 'RowExpand':
False}" Name="dTextBox1" rowColPos="(1, 1)" designerClass="controlMix"
DataSource="clients" DataField="attn"></dTextBox>
<dLabel Caption="Street"
sizerInfo="{'Proportion': 0, 'HAlign':
'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand': False,
'RowExpand': False}" designerClass="controlMix" Name="dLabel2"
rowColPos="(2, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0,
'HAlign': 'Center',
'ColExpand': True, 'VAlign': 'Middle', 'Expand': True, 'RowExpand':
False}" Name="dTextBox2" rowColPos="(2, 1)" designerClass="controlMix"
DataSource="clients" DataField="street1"></dTextBox>
<dLabel Caption="Street 2"
sizerInfo="{'Proportion': 0, 'HAlign':
'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand': False,
'RowExpand': False}" designerClass="controlMix" Name="dLabel3"
rowColPos="(3, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0,
'HAlign': 'Center',
'ColExpand': True, 'VAlign': 'Middle', 'Expand': True, 'RowExpand':
False}" Name="dTextBox3" rowColPos="(3, 1)" designerClass="controlMix"
DataSource="clients" DataField="street2"></dTextBox>
<dLabel Caption="City"
sizerInfo="{'Proportion': 0, 'HAlign':
'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand': False,
'RowExpand': False}" designerClass="controlMix" Name="dLabel4"
rowColPos="(4, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0,
'HAlign': 'Center',
'ColExpand': True, 'VAlign': 'Middle', 'Expand': True, 'RowExpand':
False}" Name="dTextBox4" rowColPos="(4, 1)" designerClass="controlMix"
DataSource="clients" DataField="city"></dTextBox>
<dLabel Caption="State"
sizerInfo="{'Proportion': 0, 'HAlign':
'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand': False,
'RowExpand': False}" designerClass="controlMix" Name="dLabel5"
rowColPos="(5, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0,
'HAlign': 'Center',
'ColExpand': True, 'VAlign': 'Middle', 'Expand': True, 'RowExpand':
False}" Name="dTextBox5" rowColPos="(5, 1)" designerClass="controlMix"
DataSource="clients" DataField="stateprov"></dTextBox>
<dLabel Caption="Zip"
sizerInfo="{'Proportion': 0, 'HAlign':
'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand': False,
'RowExpand': False}" designerClass="controlMix" Name="dLabel6"
rowColPos="(6, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0,
'HAlign': 'Center',
'ColExpand': True, 'VAlign': 'Middle', 'Expand': True, 'RowExpand':
False}" Name="dTextBox6" rowColPos="(6, 1)" designerClass="controlMix"
DataSource="clients" DataField="postalcode"></dTextBox>
<dLabel Caption="Hourly Rate"
sizerInfo="{'Proportion': 0,
'HAlign': 'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand':
False, 'RowExpand': False}" designerClass="controlMix" Name="dLabel7"
rowColPos="(7, 0)"></dLabel>
<dSpinner sizerInfo="{'Proportion': 0,
'ColExpand': True, 'Expand':
False, 'RowExpand': False}" rowColPos="(7, 1)" Width="100"
designerClass="controlMix" DataField="rate" DataSource="clients"></dSpinner>
<dLabel Caption="ID"
sizerInfo="{'Proportion': 0, 'HAlign':
'Right', 'ColExpand': False, 'VAlign': 'Middle', 'Expand': False,
'RowExpand': False}" designerClass="controlMix" Name="dLabel8"
rowColPos="(8, 0)"></dLabel>
<dTextBox sizerInfo="{'Proportion': 0,
'HAlign': 'Center',
'ColExpand': True, 'VAlign': 'Middle', 'Expand': True, 'RowExpand':
False}" Name="dTextBox7" rowColPos="(8, 1)" designerClass="controlMix"
DataSource="clients" DataField="pkid"></dTextBox>
</dGridSizer>
<dBorderSizer SlotCount="3" Caption=""
sizerInfo="{'Border': 10,
'Expand': True}" designerClass="LayoutBorderSizer" Orientation="Vertical">
<dSizer sizerInfo="{'Proportion': 1,
'HAlign': 'Center'}"
Orientation="Horizontal" DefaultBorderRight="True" DefaultSpacing="5"
DefaultBorderLeft="True" designerClass="LayoutSizer" SlotCount="4">
<dButton
code-ID="dButton-dPanel" Caption="First"
sizerInfo="{'VAlign': 'Middle'}" designerClass="controlMix"
Name="FirstBtn"></dButton>
<dButton
code-ID="dButton-dPanel-280" Caption="Prior"
sizerInfo="{'VAlign': 'Middle'}" designerClass="controlMix"
Name="PriorBtn"></dButton>
<dButton
code-ID="dButton-dPanel-989" Caption="Next"
sizerInfo="{'VAlign': 'Middle'}" designerClass="controlMix"
Name="NextBtn"></dButton>
<dButton
code-ID="dButton-dPanel-915" Caption="Last"
sizerInfo="{'VAlign': 'Middle'}" designerClass="controlMix"
Name="LastBtn"></dButton>
</dSizer>
<dPanel Spacing="5"
sizerInfo="{'Proportion': 0, 'HAlign':
'Center', 'VAlign': 'Middle'}" designerClass="LayoutSpacerPanel"></dPanel>
<dSizer SlotCount="4"
DefaultSpacing="3" sizerInfo="{'Proportion':
1, 'Expand': True}" designerClass="LayoutSizer" Orientation="Horizontal">
<dButton
code-ID="dButton-dPanel-98" Caption="Save"
sizerInfo="{'VAlign': 'Middle'}" designerClass="controlMix"
Name="SaveBtn"></dButton>
<dButton
code-ID="dButton-dPanel-140" Caption="Cancel"
sizerInfo="{'VAlign': 'Middle'}" designerClass="controlMix"
Name="CancelBtn"></dButton>
<dPanel Spacing="10"
sizerInfo="{'HAlign': 'Center', 'VAlign':
'Middle'}" designerClass="LayoutSpacerPanel"></dPanel>
<dButton
code-ID="dButton-dPanel-605" Caption="Close"
sizerInfo="{'VAlign': 'Middle'}" designerClass="controlMix"
Name="CloseBtn"></dButton>
</dSizer>
</dBorderSizer>
</dSizer>
</dPanel>
</dSizer>
</dForm>
And my info :
Platform: Win
Python Version: 2.5.2 on win32
Dabo Version: Version 0.8.4; Revision ~4626
UI Version: 2.8.7.1 on wxMSW
_______________________________________________
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]