My Project
SallyAPI::GUI::CLabelBox Class Reference

Label box. More...

#include <LabelBox.h>

Inheritance diagram for SallyAPI::GUI::CLabelBox:
SallyAPI::GUI::CForm SallyAPI::GUI::CControl SallyAPI::GUI::CGUIBaseObject SallyAPI::Core::CBaseObject

List of all members.

Public Member Functions

 CLabelBox (SallyAPI::GUI::CGUIBaseObject *parent, int x, int y, int width, int height, bool showScrollbar=false, int controlId=0)
 Constructor.
virtual ~CLabelBox ()
 Destructor.
void SetFont (const std::string &fontName)
 Sets a font.
void SetAutoResize (bool value)
 Sets an automatic resize. If it is set to true, the control will automatically resize it's height to fit in the text.
virtual void SetText (const std::string &text)
 Sets a text.
virtual void Resize (int width, int height)
 Resizes.
virtual void SendMessageToChilds (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)
 Send message to childs.

Detailed Description

Label box.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

CLabelBox::CLabelBox ( SallyAPI::GUI::CGUIBaseObject parent,
int  x,
int  y,
int  width,
int  height,
bool  showScrollbar = false,
int  controlId = 0 
)

Constructor.

Author:
Christian Knobloch
Date:
06.07.2011
Parameters:
[in,out]parentIf non-null, the parent.
xThe x coordinate.
yThe y coordinate.
widthThe width.
heightThe height.
showScrollbartrue to show, false to hide the scrollbar.
controlIdIdentifier for the control.
CLabelBox::~CLabelBox ( ) [virtual]

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

void CLabelBox::Resize ( int  width,
int  height 
) [virtual]

Resizes.

Author:
Christian Knobloch
Date:
06.07.2011
Parameters:
widthThe width.
heightThe height.

Reimplemented from SallyAPI::GUI::CControl.

void CLabelBox::SendMessageToChilds ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
int  messageId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter = NULL 
) [virtual]

Send message to childs.

Author:
Christian Knobloch
Date:
10.08.2011
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
messageIdIdentifier for the message.
[in,out]messageParameterIf non-null, the message parameter.

Reimplemented from SallyAPI::GUI::CForm.

void CLabelBox::SetAutoResize ( bool  value)

Sets an automatic resize. If it is set to true, the control will automatically resize it's height to fit in the text.

Author:
Christian Knobloch
Date:
17.08.2011
Parameters:
valuetrue to value.
void CLabelBox::SetFont ( const std::string &  fontName)

Sets a font.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
fontNameName of the font.
void CLabelBox::SetText ( const std::string &  text) [virtual]

Sets a text.

Author:
Christian Knobloch
Date:
06.07.2011
Parameters:
textThe text.

Reimplemented from SallyAPI::GUI::CControl.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines