Name

Frame — Frame with label

Synopsis

Frame ( string label ,
  term child );
 

Parameters

string label

title to be displayed on the top left edge

term child

the contained child widget

Description

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.

Usage

 	`Frame( `RadioButtonGroup( `id( rb ), `VBox( ... ) ) );

Examples

          {
    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(
				  `InputField(`opt(`shrinkable), "1"),
				  `InputField(`opt(`shrinkable), "2"),
				  `InputField(`opt(`shrinkable), "321"),
				  `InputField(`opt(`shrinkable), "4")
				  )
			    ),
		     `PushButton(`opt(`default), "&OK" )
		     )
	       );
    UI::UserInput();
    UI::CloseDialog();
}