Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31279/src/modules

Modified Files:
        BareBonesEditor.cpp 
Log Message:
allow inserting TABs into the text control; put focus to it after a formatting button 
has been pressed

Index: BareBonesEditor.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/BareBonesEditor.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -b -u -2 -r1.31 -r1.32
--- BareBonesEditor.cpp 15 Jul 2004 22:49:52 -0000      1.31
+++ BareBonesEditor.cpp 16 Jul 2004 23:54:30 -0000      1.32
@@ -765,4 +765,6 @@
    paragraph.FromCursor();
    paragraph.Format();
+
+   m_textControl->SetFocus();
 }
 
@@ -771,4 +773,6 @@
    FormattedParagraph paragraph(m_textControl,m_editor);
    paragraph.FormatAll();
+
+   m_textControl->SetFocus();
 }
 
@@ -779,4 +783,6 @@
    paragraph.FromCursor();
    paragraph.Unformat();
+
+   m_textControl->SetFocus();
 }
 
@@ -785,4 +791,6 @@
    FormattedParagraph paragraph(m_textControl,m_editor);
    paragraph.UnformatAll();
+
+   m_textControl->SetFocus();
 }
 
@@ -875,10 +883,15 @@
 wxBareBonesTextControl::wxBareBonesTextControl(BareBonesEditor *editor,
                                                wxWindow *parent)
-                      : wxTextCtrl(parent,-1,_T(""),
-                                   wxDefaultPosition,wxDefaultSize,
+                      : wxTextCtrl(parent,
+                                   -1,
+                                   _T(""),
+                                   wxDefaultPosition,
+                                   wxDefaultSize,
                                    // use wxTE_RICH to allow for more than 64Kb
                                    // of text under Win9x and wxTE_RICH2 for
                                    // better charset support (also for Win32)
-                                   wxTE_MULTILINE | wxTE_RICH2)
+                                   wxTE_MULTILINE |
+                                   wxTE_RICH2 |
+                                   wxTE_PROCESS_TAB)
 {
    m_editor = editor;



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to