CaptionBarStyle¶This class encapsulates the styles you wish to set for the CaptionBar (this is the part of the FoldPanel where the caption is displayed). It can either be applied at creation time be reapplied when styles need to be changed.
At construction time, all styles are set to their default transparency. This means none of the styles will be applied to the CaptionBar in question, meaning it will be created using the default internals. When setting i.e the colour, font or panel style, these styles become active to be used.
Methods Summary¶| __init__ | Default constructor for this class. |
| CaptionColourUsed | Checks if the caption colour of the caption bar is set. |
| CaptionFontUsed | Checks if the caption bar font is set. |
| CaptionStyleUsed | Checks if the caption style of the caption bar is set. |
| FirstColourUsed | Checks if the first colour of the caption bar is set. |
| GetCaptionColour | Returns the caption colour for the caption bar. |
| GetCaptionFont | Returns the font for the caption bar. |
| GetCaptionStyle | Returns the caption style for the caption bar. |
| GetFirstColour | Returns the first colour for the caption bar. |
| GetSecondColour | Returns the second colour for the caption bar. |
| ResetDefaults | Resets default CaptionBarStyle. |
| SecondColourUsed | Checks if the second colour of the caption bar is set. |
| SetCaptionColour | Sets caption colour for the caption bar. |
| SetCaptionFont | Sets font for the caption bar. |
| SetCaptionStyle | Sets caption style for the caption bar. |
| SetFirstColour | Sets first colour for the caption bar. |
| SetSecondColour | Sets second colour for the caption bar. |
Class API¶This class encapsulates the styles you wish to set for the CaptionBar (this is the part of the FoldPanel where the caption is displayed). It can either be applied at creation time be reapplied when styles need to be changed.
At construction time, all styles are set to their default transparency. This means none of the styles will be applied to the CaptionBar in question, meaning it will be created using the default internals. When setting i.e the colour, font or panel style, these styles become active to be used.
Default constructor for this class.
Checks if the caption colour of the caption bar is set.
Checks if the caption bar font is set.
Checks if the caption style of the caption bar is set.
Checks if the first colour of the caption bar is set.
Returns the caption colour for the caption bar.
Note
Please be warned this will result in an assertion failure when this property is not previously set.
See also
Returns the font for the caption bar.
Note
Please be warned this will result in an assertion failure when this property is not previously set.
See also
Returns the caption style for the caption bar.
Note
Please be warned this will result in an assertion failure when this property is not previously set.
See also
Returns the first colour for the caption bar.
Note
Please be warned this will result in an assertion failure when this property is not previously set.
See also
Returns the second colour for the caption bar.
Note
Please be warned this will result in an assertion failure when this property is not previously set.
See also
Resets default CaptionBarStyle.
Checks if the second colour of the caption bar is set.
Sets caption colour for the caption bar.
| Parameters: | colour – a valid Colour object. |
|---|
Note
If this is not set, the colour property is undefined and will not be used. Use CaptionColourUsed to check if this style is used.
Sets font for the caption bar.
| Parameters: | font – a valid Font object. |
|---|
Note
If this is not set, the font property is undefined and will not be used. Use CaptionFontUsed to check if this style is used.
Sets caption style for the caption bar.
| Parameters: | style – can be one of the following bits:
|
|---|
Note
If this is not set, the property is undefined and will not be used. Use CaptionStyleUsed to check if this style is used.
Sets first colour for the caption bar.
| Parameters: | colour – a valid Colour object. |
|---|
Note
If this is not set, the colour property is undefined and will not be used. Use FirstColourUsed to check if this style is used.
Sets second colour for the caption bar.
| Parameters: | colour – a valid Colour object. |
|---|
Note
If this is not set, the colour property is undefined and will not be used. Use SecondColourUsed to check if this style is used.