Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

C_Text_Edit Class Reference

Class used to utilise the text edit controls. More...

#include <C_Text_Edit.h>


Public Member Functions

 C_Text_Edit (void)
 The constructor.

 ~C_Text_Edit (void)
 The Destructor.

void Clear ()
 Clear the text edit Set the text to "".

void SetText (char *Text)
 Show a text into the edit.

void Link (HWND hwnd)
 Associate the class to the element You MUST use Link before use any other members of the class.

void SetMaxLength (int MaxLength)
 Set the length maximum of the string.

void SetPosition (int x, int y, int cx, int cy)
 Set the position of the edit.

void SetRO (bool state)
 Set read-only.

char * GetText ()
 Get the text from the text edit.


Detailed Description

Class used to utilise the text edit controls.

If you want to use an text edit, you MUST use this class (modifi it if you need)


Constructor & Destructor Documentation

C_Text_Edit::C_Text_Edit void   ) 
 

The constructor.

Do nothing

C_Text_Edit::~C_Text_Edit void   ) 
 

The Destructor.

Do nothing


Member Function Documentation

void C_Text_Edit::Clear  ) 
 

Clear the text edit Set the text to "".

char * C_Text_Edit::GetText  ) 
 

Get the text from the text edit.

Returns:
A string with the text

void C_Text_Edit::Link HWND  hwnd  ) 
 

Associate the class to the element You MUST use Link before use any other members of the class.

Parameters:
hwnd handle to the text edit

void C_Text_Edit::SetMaxLength int  MaxLength  ) 
 

Set the length maximum of the string.

Set the number of char maximum that the control can contain

Parameters:
Maxlength number of char maximum

void C_Text_Edit::SetPosition int  x,
int  y,
int  cx,
int  cy
 

Set the position of the edit.

Parameters:
x position horizontal of the left-upper corner of the control
y position vertical of the left-upper corner of the control
cx Width of the control
cy Eigth of the control

void C_Text_Edit::SetRO bool  state  ) 
 

Set read-only.

Parameters:
state state of the edit : true = read-only

void C_Text_Edit::SetText char *  Text  ) 
 

Show a text into the edit.

Parameters:
Text the text to be displayed into the text edit


The documentation for this class was generated from the following files:
Generated on Thu Jul 3 15:19:54 2003 for Sub Station Beta by doxygen1.3