利用spacer、spacer_0和spacer_1调整DCL对话框控件布局实例,代码如下。
spacertest:dialog{label="调整间距";
:row{
:button{label="A0";key="a0";fixed_width=true;}
:button{label="A1";key="a1";fixed_width=true;}
:button{label="A2";key="a2";fixed_width=true;}
}
:row{
spacer_0;
:button{label="B0";key="b0";fixed_width=true;}
:button{label="B1";key="b1";fixed_width=true;}
:button{label="B2";key="b2";fixed_width=true;}
}
:row{
spacer_1;
:button{label="C0";key="c0";fixed_width=true;}
:button{label="C1";key="c1";fixed_width=true;}
:button{label="C2";key="c2";fixed_width=true;}
}
:row{
:spacer{width=4;fixed_width=true;}
:button{label="D0";key="d0";fixed_width=true;}
:button{label="D1";key="d1";fixed_width=true;}
:button{label="D2";key="d2";fixed_width=true;}
}
ok_cancel_help_info;
}
代码完。