]> git.saurik.com Git - wxWidgets.git/commitdiff
included description of wxTextCtrl::AppendText
authorHarco de Hilster <harcoh@caos.kun.nl>
Tue, 2 Feb 1999 19:20:48 +0000 (19:20 +0000)
committerHarco de Hilster <harcoh@caos.kun.nl>
Tue, 2 Feb 1999 19:20:48 +0000 (19:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/text.tex

index 80f68cc1c75e368aabd24da7f5107deb86f6b056..0147852b7d98f1c18075902464f15d3ca52b622d 100644 (file)
@@ -453,10 +453,29 @@ Writes the text into the text control at the current insertion position.
 
 Newlines in the text string
 are the only control characters allowed, and they will cause appropriate
-line breaks.  See \helpref{wxTextCtrl::\cinsert}{wxtextctrlinsert} for more convenient ways of writing to the window.
+line breaks.  See \helpref{wxTextCtrl::\cinsert}{wxtextctrlinsert} and \helpref{wxTextCtrl::AppendText}{wxtextctrlappendtext} for more convenient ways of writing to the window.
 
 After the write operation, the insertion point will be at the end of the inserted text, so subsequent write operations will be appended. To append text after the user may have interacted with the control, call \helpref{wxTextCtrl::SetInsertionPointEnd}{wxtextctrlsetinsertionpointend} before writing.
 
+\membersection{wxTextCtrl::AppendText}\label{wxtextctrlappendtext}
+
+\func{void}{WriteText}{\param{const wxString\& }{ text}}
+
+Appends the text to the end of the text control.
+
+\wxheading{Parameters}
+
+\docparam{text}{Text to write to the text control.}
+
+\wxheading{Remarks}
+
+After the text is appended, the insertion point will be at the end of the text control. If this behaviour is not desired,
+the programmer should use \helpref{GetInsertionPoint}{wxtextctrlgetinsertionpoint} and \helpref{SetInsertionPoint}{wxtextctrlsetinsertionpoint}.
+
+\wxheading{See also}
+
+\helpref{wxTextCtrl::WriteText}{wxtextctrlwritetext}
+
 \membersection{wxTextCtrl::XYToPosition}\label{wxtextctrlxytoposition}
 
 \func{long}{XYToPosition}{\param{long}{ x}, \param{long}{ y}}
@@ -487,7 +506,7 @@ The position value.
 
 \func{wxTextCtrl\&}{operator \cinsert}{\param{char}{ c}}
 
-Operator definitions for writing to a text control, for example:
+Operator definitions for appending to a text control, for example:
 
 \begin{verbatim}
   wxTextCtrl *wnd = new wxTextCtrl(my_frame);