Curl
 

Menu
 Chapter.1
 Chapter.2
 Chapter.3
 Chapter.4
 Chapter.5
 Chapter.6
 Chapter.7
 Chapter.8
 Chapter.9
 Chapter.10
 
 
■Tableへの行の追加

row-prototypeプロシージャを使用すると、行全体のオブジェクトをまとめてTableに追加できます。
row-prototypeの引数はセルのリストとして指定しますが、このリストはcell-prototypeのブロックで構成するか、直接グラフィックオブジェクトで構成します。
Part.1の表をrow-prototypeを使用して作成した場合下記のようになります。


【Tableへの行の追加】
{curl 6.0 applet}
{curl-file-attributes character-encoding = "shift-jis"}
{Table columns=2,background="beige",cell-border-color="black",cell-border-width=1pt,
{row-prototype {bold 質問}, {bold 答え}},
{row-prototype "名前", "漱石"},
{row-prototype "職業", "犬"},
{row-prototype "年齢", "2歳"}
}


出力はPart.1の表と同じです。



Chapter.6(Part.3)へ戻る
Chapter.6(Part.5)へ進む