From: Harco de Hilster Date: Tue, 2 Feb 1999 19:20:48 +0000 (+0000) Subject: included description of wxTextCtrl::AppendText X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/abaa2936648b755444fb4932de6dcc1317989321 included description of wxTextCtrl::AppendText git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/text.tex b/docs/latex/wx/text.tex index 80f68cc1c7..0147852b7d 100644 --- a/docs/latex/wx/text.tex +++ b/docs/latex/wx/text.tex @@ -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);