Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXGroupBox Class Reference

#include <FXGroupBox.h>

Inheritance diagram for FXGroupBox:

FXPacker FXComposite FXWindow FXDrawable FXId FXObject List of all members.

Public Methods

 FXGroupBox (FXComposite *p, const FXString &text, FXuint opts=GROUPBOX_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_SPACING, FXint pr=DEFAULT_SPACING, FXint pt=DEFAULT_SPACING, FXint pb=DEFAULT_SPACING, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
 Construct group box layout manager.

virtual void create ()
 Create server-side resources.

virtual void detach ()
 Detach server-side resources.

virtual void enable ()
 Enable the window.

virtual void disable ()
 Disable the window.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

void setText (const FXString &text)
 Change group box title text.

void setGroupBoxStyle (FXuint style)
 Change group box style.

FXuint getGroupBoxStyle () const
 Return current group box style.

void setFont (FXFont *fnt)
 Change title font.

FXFontgetFont () const
 Return title font.

void setTextColor (FXColor clr)
 Change title text color.

FXColor getTextColor () const
 Return text color.

virtual void save (FXStream &store) const
 Save to a stream.

virtual void load (FXStream &store)
 Load from a stream.


Public Attributes

FXString getText () const
 Return current groupbox title text.


Detailed Description

A group box widget provides a nice raised or sunken border around a group of widgets, providing a visual delineation. Typically, a title is placed over the border to provide some clarification. Radio buttons placed inside a group box automatically assume mutually exclusive behaviour, i.e. at most one radio button will be checked at any one time.