A class representing a tool bar consisting of a series of static text controls with 3-D borders.
![]() | Construction |
![]() | Overrides from PInteractor |
![]() | New functions for class |
![]() | GetSection ( PINDEX section ) const Get the specified section of the status bar. |
Overrides from class PInteractor
Overrides from class PObject
System callback functions.
A class representing a tool bar consisting of a series of static text controls with 3-D borders. The static text sections may be optionaly of a fixed width or dynamically resized when the status bar has its size changed.This is typically used at the bottom of a window to indicate status and short message displays.
The text may be set using printf style variable arguments. If this is
done then the format string cannot be a \ref{PString} instance due to
limitations in some compilers. If no section number is specified then the first section is set.
The text may be set using printf style variable arguments. If this is
done then the format string cannot be a \ref{PString} instance due to
limitations in some compilers. If no section number is specified then the first section is set.
The first form will set the width to sufficient to contain the string
specified, in the status bars currently selected font. The second form sets the width to the widest string in the specified
array of resource strings. The final form sets the width directly. A positive value specifies the
fixed width if the section in the interactors font based coordinate
system. A negative width here will specify a ratio to be used when dividing the
total remaining bar width amongst all sections with negative widths. If a section has its width changed after the status bar is shown then
an explicit call to the \ref{PInteractor::SetDimensions()} function
must be made to resize all of the sections. The default width for a section is -1.
void SetText( PRESOURCE_ID resId, ... )
void SetText( const char * fmt, ... )
void SetSectionText( PINDEX section, const PString & str )
str - New text string for sectionvoid SetSectionText( PINDEX section, PRESOURCE_ID resId, ... )
resId - Printf style format resource string for variable arguments.void SetSectionText( PINDEX section, const char * fmt, ... )
fmt - Printf style format string for variable arguments.void SetSectionWidth( PINDEX section, const PString & str )
str - Longest text string to put into section.void SetSectionWidth( PINDEX section, const PRESOURCE_ID * strIDs, PINDEX nStrings )
strIDs - Array of string resource identifiers.
nStrings - Number of string resource identifiers.void SetSectionWidth( PINDEX section, int width )
width - Width of the section.void SetSectionAlignment( PINDEX section, PCanvas::DrawStringOptions align )
align - text alignment for section.
Alphabetic index HTML hierarchy of classes or Java