LGroupBox is a PowerPlant class that is usually used for visually grouping user interface elements, using a line drawn around them.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
This class derives from LCaption. The text set with DrawText() is the title of the group. This object draws a box with the specified coordinates.
The top of the object's frame does not coincide with the top line drawn for the group box. The other panes that are visually within the group box do not have a programming relationship to the group box in the hierarchy. They are simply visually grouped, without any program control between the group box and the other panes.
Source files:
See also:
Purpose:
The constructor creates the object from the passed-in parameters.
Access:
Prototype:
LGroupBox();
LGroupBox( const LGroupBox &inGroupBox );
LGroupBox( const SPaneInfo &inPaneInfo,
Str255 inString,
ResIDT inTextTraitsID );
LGroupBox( LStream *inStream );Parameters:
The parameters for these constructors are:
Purpose:
The destructor destroys the object.
Access:
Prototype:
virtual LGroupBox();Parameters:
Purpose:
This method draws the group box. It is drawn in two stages. First the frame rectangle is drawn, minus the area where the title text is drawn. Second, the title text is drawn. In order to draw without any flashing, we find the frame of the text box and clip it out of the drawing region.
Access:
Prototype:
virtual void DrawSelf();Parameters:
Return:
Purpose:
This method draws the group box text given the chosen Rect coordinates.
Access:
Prototype:
virtual void DrawText( const Rect &inRect );Parameters:
The parameter for this method is:
Return:
Purpose:
This method draws the group box frame given the chosen coordinates.
Access:
Prototype:
virtual void DrawBorder( const Rect &inRect );Parameters:
The parameter for this method is:
Return:
Purpose:
This method decides where the text will be drawn, but does not draw the text.
Access:
Prototype:
virtual void CalcTextBoxFrame( Rect &outRect );Parameters:
The parameter for this method is:
Return:
Purpose:
This data member holds the color to draw the group box frame in.
Access:
Prototype:
RGBColor mFrameColor;