Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

W32DLib::Text Class Reference

The Text class. More...

#include <w32dlib/text.h>

Inheritance diagram for W32DLib::Text:

W32DLib::Control W32DLib::Window List of all members.

Public Member Functions

 Text (Dialog *parent, int resource_id, DataX *datax)
 Constructor.
virtual ~Text ()
 Destructor.
void OnTextChanged (Window *owner, W32DLibCallback callback)
 Sets a callback for when the text is altered.
void MaxLen (int count)
 Sets the maximum length the user can enter.
void ReadOnly (bool readonly)
 Sets whether the user can enter text.
void AppendText (const char *text)
 Appends text.
void AppendText (const std::string &text)
 Appends text.

Detailed Description

The Text class.


Constructor & Destructor Documentation

W32DLib::Text::Text Dialog parent,
int  resource_id,
DataX datax
 

Constructor.

Parameters:
parent The dialog the control belongs to.
resource_id The ID of the control in the resource file.
datax The DataX to use. NULL means don't use data exchange.

virtual W32DLib::Text::~Text  )  [virtual]
 

Destructor.


Member Function Documentation

void W32DLib::Text::AppendText const std::string &  text  ) 
 

Appends text.

Note this is mainly for providing logging controls and the suchlike. Any current selection and caret position will almost certainly be messed up.

Parameters:
text The text to add.

void W32DLib::Text::AppendText const char *  text  ) 
 

Appends text.

Note this is mainly for providing logging controls and the suchlike. Any current selection and caret position will almost certainly be messed up.

Parameters:
text The text to add.

void W32DLib::Text::MaxLen int  count  ) 
 

Sets the maximum length the user can enter.

Parameters:
count The maximum number of characters the user can enter.

void W32DLib::Text::OnTextChanged Window owner,
W32DLibCallback  callback
 

Sets a callback for when the text is altered.

Parameters:
owner The class the callback resides in.
callback The callback.

void W32DLib::Text::ReadOnly bool  readonly  ) 
 

Sets whether the user can enter text.

Parameters:
readonly true for readonly, false for editable.


The documentation for this class was generated from the following file:
Generated on Fri May 6 01:22:34 2005 for W32DLib by  doxygen 1.4.1