NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
TextField Class Reference

This class is a extension to the standard wxTextCtrl to combine it with a read- and changeable label. More...

#include <grouppanel.hpp>

Inheritance diagram for TextField:
Collaboration diagram for TextField:

Public Member Functions

 TextField (wxWindow *parent, wxWindowID id, const wxString &sDefault, const wxSize &size, int nStyle)
 
void SetLabel (const wxString &label)
 Set a new label. More...
 
wxString GetLabel ()
 Get the current label. More...
 
virtual bool Show (bool show)
 Show or hide the label and the control. More...
 
virtual bool Enable (bool enable)
 Enable or disable the label and the control. More...
 

Public Attributes

wxStaticText * m_label
 

Detailed Description

This class is a extension to the standard wxTextCtrl to combine it with a read- and changeable label.

Definition at line 112 of file grouppanel.hpp.

Constructor & Destructor Documentation

◆ TextField()

TextField::TextField ( wxWindow *  parent,
wxWindowID  id,
const wxString &  sDefault,
const wxSize &  size,
int  nStyle 
)
inline

Definition at line 117 of file grouppanel.hpp.

Member Function Documentation

◆ Enable()

virtual bool TextField::Enable ( bool  enable)
inlinevirtual

Enable or disable the label and the control.

Parameters
enablebool
Returns
virtual bool

Definition at line 171 of file grouppanel.hpp.

References m_label.

Referenced by CustomWindow::layoutChild().

◆ GetLabel()

wxString TextField::GetLabel ( )
inline

Get the current label.

Returns
wxString

Definition at line 139 of file grouppanel.hpp.

References m_label.

◆ SetLabel()

void TextField::SetLabel ( const wxString &  label)
inline

Set a new label.

Parameters
labelconst wxString&
Returns
void

Definition at line 127 of file grouppanel.hpp.

References m_label.

◆ Show()

virtual bool TextField::Show ( bool  show)
inlinevirtual

Show or hide the label and the control.

Parameters
showbool
Returns
virtual bool

Definition at line 155 of file grouppanel.hpp.

References m_label.

Referenced by CustomWindow::layoutChild().

Member Data Documentation

◆ m_label

wxStaticText* TextField::m_label

Definition at line 115 of file grouppanel.hpp.

Referenced by GroupPanel::CreateTextInput(), Enable(), GetLabel(), SetLabel(), and Show().


The documentation for this class was generated from the following file: