# groupbox 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 children geometries or use $setColumnLayout to manage the layout automatically.
Functions

`$setTitle(<text:String>)`
Sets the group box title to <text>.
`<string> $title()`
Returns the group box 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 group box 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 group box 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 group box title.
`$setAlignment(<alignment:string>)`
Set the alignment of the groupbox; Valid values are Left,Right,HCenter.
`$setOrientation<orientation:string>`
Sets the group box's orientation. Valid values are: Horizontal, Vertical.

Examples

        //Let's start.
        //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 gbox 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 pass 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

KVIrc 4.2.0.6190 Documentation
Generated by portbuild at Mon Aug 12 23:49:50 2013