groupbox object class
Provides a groupbox bar.
Inherits
object widget
Description
This widget can be used to display a groupbox. It will be usually a parent for other child controls. You can either use a child layout to manage the child geometries or use $setColumnLayout to manage the layout automatically.
Functions
$setTitle(<text:String>)
Sets the group box title to <text>.
<string> $title()
Returns the groupbox title text.
$setFlat(<bflag:boolean>)
Sets whether the group box is painted flat. Valid Values are 1 or 0.
<boolean> $isFlat()
Returns 1 (true) if the groupbox is painted flat; otherwise returns 0 (false).
<boolean> $isCheckable()
Returns 1 (true) if the group box has a checkbox in its title; otherwise returns 0 (false).
$setCheckable(<bflag:boolean>)
Sets whether the groupbox has a checkbox in its title: Valid values are 1 or 0.
$setInsideMargin(<margin:uint>)
Sets the the width of the inside margin to m pixels.
<integer> $insideMargin()
Returns the width of the empty space between the items in the group and margin of groupbox.
$setInsideSpacing(<spacing:uint>)
Sets the width of the empty space between each of the items in the group to m pixels.
<integer> $insideSpacing()
Returns the width of the empty space between each of the items in the group.
$addSpace()
Adds an empty cell at the next free position.
<string> $alignment()
Returns the alignment of the groupbox title.
$setAlignment(<alignment:string>)
Set the alignment of the groupbox; Valid values are: Left, Right, HCenter.
$setOrientation<orientation:string>
Sets the groupbox's orientation. Valid values are: Horizontal, Vertical.
Examples

# First we'll create the main widget. as a dialog
%widget=$new(dialog)
%layout=$new(layout,%widget)
# Then the groupbox
%gb=$new(groupbox,%widget)
%gb->$setTitle(Login)
%gb->$setAlignment("Left")
# Add the groupbox to the main layout
%layout->$addWidget(%gb,0,0)

# Now we create the user field
# (labels + lineedit) in a horizontal box

%hbox=$new(hbox,%gb)
%labeluser=$new(label,%hbox)
%labeluser->$settext(User: )
%inputuser=$new(lineedit,%hbox)

# Now we create the password field
# (labels + lineedit) in a horizontal box

%hbox=$new(hbox,%gb)
%labelpass=$new(label,%hbox)
%labelpass->$settext(Pass: )
%inputpass=$new(lineedit,%hbox)
%inputpass->$setechomode("password")
# Now we create the OK/Cancel box buttons
%hbox=$new(hbox,%gb)
%btnok=$new(button,%hbox)
%btnok->$settext("OK")
%btncancel=$new(button,%hbox)
%btncancel->$settext("Cancel")
# Let's show our nice form
%widget->$show()

Index, Object Classes