[Prev][Next][Index][Thread]
Re: DUIM question
In article <MNDJDGFDAHDICAAA@mailcity.com>,
andy.armstrong@mailcity.com wrote:
> The class <table-layout> is the way to do this. Try the following in
> the Dylan Playground:
>
> contain(make(<table-layout>,
> children: vector(make(<label>, label: "Short"),
> make(<text-field>),
> make(<label>, label: "Much longer"),
> make(<text-field>)),
> columns: 2,
> x-spacing: 2, y-spacing: 5,
> x-alignment: #[#"right", #"left"]));
>
There is a "tabling" macro that you can use like this:
tabling(columns: 2, x-spacing: 2, y-spacing: 5,
x-alignment: #[#"right", #"left"])
make(<label>, label: "Short"),
make(<text-field>),
make(<label>, label: "Much longer"),
make(<text-field>)
end;
Also note that there are "labelling" and a "grouping" convenience
macros too that you can use to ease the implementation of your layouts.
Sent via Deja.com http://www.deja.com/
Before you buy.
References: