[サンプル:form_size1]
Form form_size1 {
…
Spread Spread1 {
X = 43;
Y = 75;
/*常にFormの大きさを参照する*/
Width &= Form_size1.Width - 70;
Height &= Form_size1.Height - 90;
SpreadRow SpreadRow1[] {
/*SpreadのHeightから、SpreadRowのHeightを算出*/
Height &= (^.Height -20) / 5;
SpreadColumn SpreadColumn1 {
Title = "品名";
/*SpreadのWidthから、SpreadColumnのWidthを算出*/
Width &= (^.^.Width - 30) / 3;
}
SpreadColumn SpreadColumn2 {
Title = "値段";
Width &= (^.^.Width - 30) / 3;
}
SpreadColumn SpreadColumn3 {
Title = "出荷先";
Width &= (^.^.Width - 35) / 3;
}
}
}
…
}
|