From: Steve Brokenshire Date: Sun, 13 Mar 2016 15:58:30 +0000 (+0000) Subject: Added comments to describe functions in contacteditor/frmContactEditor-Events.cpp X-Git-Tag: release-0.11~64 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=e0f67d0cbeb9d32e002f2ac99ec1d586b58e51c0 Added comments to describe functions in contacteditor/frmContactEditor-Events.cpp --- diff --git a/source/contacteditor/frmContactEditor-Events.cpp b/source/contacteditor/frmContactEditor-Events.cpp index 62f8a55..df0ff62 100644 --- a/source/contacteditor/frmContactEditor-Events.cpp +++ b/source/contacteditor/frmContactEditor-Events.cpp @@ -20,7 +20,9 @@ bool frmContactEditor::ProcessEvent(wxEvent& event) { - + + // Process the cut/copy/paste events. + // This section has been taken from the wxWidgets sample code of richtext.cpp // so that simple Cut/Copy/Paste code can be made. @@ -65,7 +67,8 @@ bool frmContactEditor::ProcessEvent(wxEvent& event) void frmContactEditor::UpdateDisplayAs( wxCommandEvent &event ){ - // Generate a drop down list of common names to use for the display as drop down box. + // Generate a drop down list of common names to + // use for the display as drop down box. wxString SetValue = cmbDisplayAs->GetValue(); @@ -92,7 +95,10 @@ void frmContactEditor::UpdateDisplayAs( wxCommandEvent &event ){ } void frmContactEditor::UpdateName( wxCommandEvent &event ){ - + + // Update the window title and main window menu item + // with the new name. + this->SetTitle(cmbDisplayAs->GetValue()); WindowData *WData = new WindowData;