MGUI::FORM_EDIT_OBJECTNAME_T< _CT > Class Template Reference

Convenience template for FORM_EDIT_OBJECTNAME to allow method in container class to be called. More...

#include <mgui/formeditobjname.h>

Inheritance diagram for MGUI::FORM_EDIT_OBJECTNAME_T< _CT >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &label, _CT *pContainer, void(_CT::*pfOnChangeValue)(), bool(_CT::*pfOnValidate)(MISTRING &string), MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, MGUI::CTRL_LABEL::STYLE labelstyle=MGUI::CTRL_LABEL::STYLE_LeftNoWrap)
 FORM_EDIT_OBJECTNAME_T ()

Private Member Functions

virtual void OnChangeValue ()
virtual bool OnValidate (MISTRING &string)

Private Attributes

_CT * m_pContainer
void(_CT::* m_pfOnChangeValue )()
bool(_CT::* m_pfOnValidate )(MISTRING &)

Detailed Description

template<class _CT>
class MGUI::FORM_EDIT_OBJECTNAME_T< _CT >

Convenience template for FORM_EDIT_OBJECTNAME to allow method in container class to be called.

Definition at line 268 of file formeditobjname.h.


Constructor & Destructor Documentation

template<class _CT>
MGUI::FORM_EDIT_OBJECTNAME_T< _CT >::FORM_EDIT_OBJECTNAME_T  )  [inline, explicit]
 

Constructor.

Definition at line 272 of file formeditobjname.h.


Member Function Documentation

template<class _CT>
void MGUI::FORM_EDIT_OBJECTNAME_T< _CT >::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const MISTRING label,
_CT *  pContainer,
void(_CT::*  pfOnChangeValue)(),
bool(_CT::*  pfOnValidate)(MISTRING &string),
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize,
MGUI::CTRL_LABEL::STYLE  labelstyle = MGUI::CTRL_LABEL::STYLE_LeftNoWrap
[inline]
 

Create form with label from resource lookup.

Parameters:
ParentPane  Parent pane
label  Label
pContainer  Pointer to container
pfOnChangeValue  Function to call when value changed, NULL for none
pfOnValidate  Function to call for validation, NULL for none

Definition at line 277 of file formeditobjname.h.

template<class _CT>
virtual void MGUI::FORM_EDIT_OBJECTNAME_T< _CT >::OnChangeValue  )  [inline, private, virtual]
 

Called when value is changed after validation.

Derived class must call corresponding base class method BEFORE performing its own processing. If the user modifies the text in the edit control this will not be called until the control loses "focus".

Reimplemented from MGUI::FORM_EDIT_OBJECTNAME.

Definition at line 298 of file formeditobjname.h.

template<class _CT>
virtual bool MGUI::FORM_EDIT_OBJECTNAME_T< _CT >::OnValidate MISTRING string  )  [inline, private, virtual]
 

Validate the string and alter if possible/necessary.

Derived class must call corresponding base class method BEFORE performing its own processing.

Returns:
'true' if string could be validated, 'false' if not

Reimplemented from MGUI::FORM_EDIT_OBJECTNAME.

Definition at line 300 of file formeditobjname.h.


Member Data Documentation

template<class _CT>
_CT* MGUI::FORM_EDIT_OBJECTNAME_T< _CT >::m_pContainer [private]
 

Definition at line 294 of file formeditobjname.h.

template<class _CT>
void(_CT::* MGUI::FORM_EDIT_OBJECTNAME_T< _CT >::m_pfOnChangeValue)() [private]
 

template<class _CT>
bool(_CT::* MGUI::FORM_EDIT_OBJECTNAME_T< _CT >::m_pfOnValidate)(MISTRING &) [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:20:52 2004 for TNTsdk by  doxygen 1.3.8-20040913