From e0f67d0cbeb9d32e002f2ac99ec1d586b58e51c0 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 15:58:30 +0000 Subject: [PATCH] Added comments to describe functions in contacteditor/frmContactEditor-Events.cpp --- source/contacteditor/frmContactEditor-Events.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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; -- 2.39.5