DCL布局问题
如何删除标记为红色矩形的区域?but : button { width = 13; fixed_width = true; }
StdQuickOptionsDialog : dialog { label = "Quick settings";
: column {
: row {alignment = centered;
: column { alignment = left;
: text { key = "A1";label = "Settings 1 question longer and";}
: text { key = "A2";label = "Settings 2";}
: text { key = "A3";label = "Settings 3";}
}
: column { alignment = right;width= 25;
: edit_box { key = "edit1";}
: popup_list { key = "pop";}
: edit_box { key = "edit2";}
}
}
: spacer {}
: spacer {}
: row { alignment = centered; fixed_width = true;
: but { key = "but3";label = "&Save"; }
: but { key = "but1";label = "&Ok"; is_default = true; }
: but { key = "but2";label = "&Cancel"; is_cancel = true; }
}
: errtile {}
}
}
我交换了两列的顺序,文本现在显示在右侧,但靠近编辑框?DCL做了一些事情,你有一份关于创建DCL的手册,它正在帮助下可能会提供一些线索。
您只移动了空格。。这不是一个解决方案。。
无论如何,我的问题解决了。
but : button { width = 13; fixed_width = true; }
StdQuickOptionsDialog : dialog { label = "Quick settings";
: column {
: row {alignment = centered;width=30;
: column { alignment = left;
: text { key = "A1";value = "Settings 1 question longer and";width=24;}
: text { key = "A2";value = "Settings 2";}
: text { key = "A3";value = "Settings 3";}
}
: column { alignment = right;
: edit_box { key = "edit1";width=15;}
: popup_list { key = "pop";}
: edit_box { key = "edit2";}
}
}
: spacer_1 {}
: row { alignment = centered; fixed_width = true;
: but { key = "but3";label = "&Save"; }
: but { key = "but1";label = "&Ok"; is_default = true; }
: but { key = "but2";label = "&Cancel"; is_cancel = true; }
}
: errtile {}
}
}
页:
[1]