Frame — Frame with label
Frame
( | string | label, |
| term | child); |
label
title to be displayed on the top left edge
child
the contained child widget
This widget draws a frame around its child and displays a title label within the top left edge of that frame. It is used to visually group widgets together. It is very common to use a frame like this around radio button groups.
{
UI::OpenDialog(
`VBox(
`Frame ( "Hey! I&mportant!",
`Label("Hello, World!")
),
`PushButton("&OK")
)
);
UI::UserInput();
UI::CloseDialog();
}
{
UI::OpenDialog( `VBox(
`Frame ( "CPU &Speed",
`RadioButtonGroup(
`VBox(
`Left(`RadioButton("Normal" )),
`Left(`RadioButton("Overclocked" )),
`Left(`RadioButton("Red Hot" )),
`Left(`RadioButton("Melting", true ))
)
)
),
`PushButton("&OK")
)
);
UI::UserInput();
UI::CloseDialog();
}
{
UI::OpenDialog(
`VBox(
`Frame("Shrinkable Textentries",
`HBox(
`TextEntry(`opt(`shrinkable), "1"),
`TextEntry(`opt(`shrinkable), "2"),
`TextEntry(`opt(`shrinkable), "3"),
`TextEntry(`opt(`shrinkable), "4")
)
),
`PushButton(`opt(`default), "&OK" )
)
);
UI::UserInput();
UI::CloseDialog();
}