Update of /cvsroot/mahogany/M/src/modules
In directory usw-pr-cvs1:/tmp/cvs-serv7892/src/modules
Modified Files:
LayoutEditor.cpp
Log Message:
position the cursor at the end of the text after the external editor termination
Index: LayoutEditor.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/LayoutEditor.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -u -2 -r1.6 -r1.7
--- LayoutEditor.cpp 3 Jun 2002 11:09:09 -0000 1.6
+++ LayoutEditor.cpp 3 Jul 2002 12:49:02 -0000 1.7
@@ -360,4 +360,5 @@
{
m_LayoutWindow->GetLayoutList()->MoveCursorTo(wxPoint(x, y));
+ m_LayoutWindow->ScrollToCursor();
}
@@ -367,4 +368,5 @@
llist->MoveCursorVertically(y);
llist->MoveCursorHorizontally(x);
+ m_LayoutWindow->ScrollToCursor();
}
@@ -426,5 +428,6 @@
m_LayoutWindow->GetLayoutList()->Insert(obj);
-
+ m_LayoutWindow->ResizeScrollbars(true /* exactly */);
+ m_LayoutWindow->ScrollToCursor();
m_LayoutWindow->Refresh();
}
@@ -485,12 +488,7 @@
// now insert the new text
wxLayoutImportText(m_LayoutWindow->GetLayoutList(), text);
- m_LayoutWindow->ResizeScrollbars(true);
m_LayoutWindow->SetModified();
m_LayoutWindow->SetDirty();
- // FIXME: what, if either, should be done here?
- m_LayoutWindow->Refresh();
- //m_LayoutWindow->GetLayoutList()->ForceTotalLayout();
-
// and insert the non-text objects back if we had removed them
if ( listNonTextObjects )
@@ -507,4 +505,8 @@
delete listNonTextObjects;
}
+
+ m_LayoutWindow->ResizeScrollbars(true /* exactly */);
+ m_LayoutWindow->ScrollToCursor();
+ m_LayoutWindow->Refresh();
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates