wxShapeFramework  1.13.0 beta
wxSFContentCtrl Class Reference

Auxiliary class providing neccessary functionality needed for in-place modification of a content of the text shape. More...

#include <EditTextShape.h>

Collaboration diagram for wxSFContentCtrl:

List of all members.

Public Member Functions

 wxSFContentCtrl (wxWindow *parent, wxWindowID id, wxSFEditTextShape *parentShape, const wxString &content, wxPoint pos, wxSize size, int style)
 Constructor.
void Quit (bool apply=sfAPPLY_TEXT_CHANGES)
 Finish the editing process/.

Protected Member Functions

void OnKillFocus (wxFocusEvent &event)
 Event handler called if the text control lost the focus.
void OnKeyDown (wxKeyEvent &event)
 Event handler called if the key was pressed in the text control.
 DECLARE_EVENT_TABLE ()

Protected Attributes

wxWindow * m_pParent
wxSFEditTextShapem_pParentShape
wxString m_sPrevContent

Detailed Description

Auxiliary class providing neccessary functionality needed for in-place modification of a content of the text shape.

See also:
wxSFEditTextShape

Constructor & Destructor Documentation

wxSFContentCtrl::wxSFContentCtrl ( wxWindow *  parent,
wxWindowID  id,
wxSFEditTextShape parentShape,
const wxString &  content,
wxPoint  pos,
wxSize  size,
int  style 
)

Constructor.

Parameters:
parentPointer to the parent window
idID of the text control window
parentShapePointer to the parent editable text shape
contentInitial content of the text control
posInitial position
sizeInitial size
styleWindow style

Member Function Documentation

void wxSFContentCtrl::OnKeyDown ( wxKeyEvent &  event) [protected]

Event handler called if the key was pressed in the text control.

Parameters:
eventReference to the event class instance
void wxSFContentCtrl::OnKillFocus ( wxFocusEvent &  event) [protected]

Event handler called if the text control lost the focus.

Parameters:
eventReference to the event class instance

Finish the editing process/.

Parameters:
applyIf TRUE then changes made in eddited text will be applied on text shape, otherwise it will be canceled

Member Data Documentation

wxWindow* wxSFContentCtrl::m_pParent [protected]
wxString wxSFContentCtrl::m_sPrevContent [protected]

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