Curl
 

Menu
 Chapter.1
 Chapter.2
 Chapter.3
 Chapter.4
 Chapter.5
 Chapter.6
 Chapter.7
 Chapter.8
 Chapter.9
 Chapter.10
 
 
■Frameとは

Frame とは1つのグラフィカルオブジェクト(子)を保持するグラフィカルコンテナです。
Frameを使用すると、簡単に枠またはマージンを作成できます。
Frame は、Graphic 自体にオプションを設定しないで、Graphic の周囲にボーダーまたはマージンを配置したり、Graphic に影響するその他の非ローカル オプションを設定するのに便利です。


■簡単なFrame

{curl 6.0 applet}
{curl-file-attributes character-encoding = "shift-jis"}

{Frame
border-color ="cyan",
border-width=10pt,
{Table columns=2,
{bold 質問},{bold 答え},
"名前", "漱石",
"職業","犬",
"年齢","2歳"
}
}


幅と高さを指定しないと、サイズはFrameのコンテンツの大きさに合わせられます。


■例えばFrameを使用してボーダーを作成する場合

{curl 6.0 applet}
{curl-file-attributes character-encoding = "shift-jis"}
{Frame
width = 1.5cm,
height = 1.5cm,
background = "yellow",
halign = "center",
valign = "center",
{VBox
width = 1cm,
height = 1cm,
background = "lime"}
}

2つの色違いの四角形が重なっているイメージですね(^^)
VBoxについては後日詳しく学習します。

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