亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? text.tex

?? Wxpython Implemented on Windows CE, Source code
?? TEX
?? 第 1 頁 / 共 3 頁
字號:
%%%%%%%%%%%%%%%%%%%%%%%%%%%% wxTextCtrl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{\class{wxTextCtrl}}\label{wxtextctrl}

A text control allows text to be displayed and edited. It may be
single line or multi-line.

\wxheading{Derived from}

streambuf\\
\helpref{wxControl}{wxcontrol}\\
\helpref{wxWindow}{wxwindow}\\
\helpref{wxEvtHandler}{wxevthandler}\\
\helpref{wxObject}{wxobject}

\wxheading{Include files}

<wx/textctrl.h>

\wxheading{Window styles}

\twocolwidtha{5cm}
\begin{twocollist}\itemsep=0pt
\twocolitem{\windowstyle{wxTE\_PROCESS\_ENTER}}{The control will generate
the event wxEVT\_COMMAND\_TEXT\_ENTER (otherwise pressing Enter key
is either processed internally by the control or used for navigation between
dialog controls).}
\twocolitem{\windowstyle{wxTE\_PROCESS\_TAB}}{The control will receive
wxEVT\_CHAR events for TAB pressed - normally, TAB is used for passing to the
next control in a dialog instead. For the control created with this style,
you can still use Ctrl-Enter to pass to the next control from the keyboard.}
\twocolitem{\windowstyle{wxTE\_MULTILINE}}{The text control allows multiple lines.}
\twocolitem{\windowstyle{wxTE\_PASSWORD}}{The text will be echoed as asterisks.}
\twocolitem{\windowstyle{wxTE\_READONLY}}{The text will not be user-editable.}
\twocolitem{\windowstyle{wxTE\_RICH}}{Use rich text control under Win32, this
allows to have more than 64KB of text in the control even under Win9x. This
style is ignored under other platforms.}
\twocolitem{\windowstyle{wxTE\_RICH2}}{Use rich text control version 2.0 or 3.0
under Win32, this style is ignored under other platforms}
\twocolitem{\windowstyle{wxTE\_AUTO\_URL}}{Highlight the URLs and generate the
wxTextUrlEvents when mouse events occur over them. This style is only supported
for wxTE\_RICH Win32 and multi-line wxGTK2 text controls.}
\twocolitem{\windowstyle{wxTE\_NOHIDESEL}}{By default, the Windows text control
doesn't show the selection when it doesn't have focus - use this style to force
it to always show it. It doesn't do anything under other platforms.}
\twocolitem{\windowstyle{wxHSCROLL}}{A horizontal scrollbar will be created and
used, so that text won't be wrapped. No effect under wxGTK1.}
\twocolitem{\windowstyle{wxTE\_LEFT}}{The text in the control will be left-justified (default).}
\twocolitem{\windowstyle{wxTE\_CENTRE}}{The text in the control will be centered (currently wxMSW and wxGTK2 only).}
\twocolitem{\windowstyle{wxTE\_RIGHT}}{The text in the control will be right-justified (currently wxMSW and wxGTK2 only).}
\twocolitem{\windowstyle{wxTE\_DONTWRAP}}{Same as {\tt wxHSCROLL} style: don't wrap at all, show horizontal scrollbar instead.}
\twocolitem{\windowstyle{wxTE\_CHARWRAP}}{Wrap the lines too long to be shown entirely at any position (wxUniv and wxGTK2 only).}
\twocolitem{\windowstyle{wxTE\_WORDWRAP}}{Wrap the lines too long to be shown entirely at word boundaries (wxUniv and wxGTK2 only).}
\twocolitem{\windowstyle{wxTE\_BESTWRAP}}{Wrap the lines at word boundaries or at any other character if there are words longer than the window width (this is the default).}
\twocolitem{\windowstyle{wxTE\_CAPITALIZE}}{On PocketPC and Smartphone, causes the first letter to be capitalized.}
\end{twocollist}

See also \helpref{window styles overview}{windowstyles} and \helpref{wxTextCtrl::wxTextCtrl}{wxtextctrlctor}.

\wxheading{wxTextCtrl text format}

The multiline text controls always store the text as a sequence of lines
separated by {\tt $\backslash$n} characters, i.e. in the Unix text format even
on non-Unix platforms. This allows the user code to ignore the differences
between the platforms but at a price: the indices in the control such as those
returned by \helpref{GetInsertionPoint}{wxtextctrlgetinsertionpoint} or
\helpref{GetSelection}{wxtextctrlgetselection} can {\bf not} be used as
indices into the string returned by \helpref{GetValue}{wxtextctrlgetvalue} as
they're going to be slightly off for platforms using
{\tt $\backslash$r$\backslash$n} as separator (as Windows does), for example.

Instead, if you need to obtain a substring between the $2$ indices obtained
from the control with the help of the functions mentioned above, you should
use \helpref{GetRange}{wxtextctrlgetrange}. And the indices themselves can
only be passed to other methods, for example
\helpref{SetInsertionPoint}{wxtextctrlsetinsertionpoint} or
\helpref{SetSelection}{wxtextctrlsetselection}.

To summarize: never use the indices returned by (multiline) wxTextCtrl as
indices into the string it contains, but only as arguments to be passed back
to the other wxTextCtrl methods.

\wxheading{wxTextCtrl styles}

Multi-line text controls support the styles, i.e. provide a possibility to set
colours and font for individual characters in it (note that under Windows {\tt
wxTE\_RICH} style is required for style support). To use the styles you can
either call \helpref{SetDefaultStyle}{wxtextctrlsetdefaultstyle} before
inserting the text or call \helpref{SetStyle}{wxtextctrlsetstyle} later to
change the style of the text already in the control (the first solution is
much more efficient).

In either case, if the style doesn't specify some of the attributes (for
example you only want to set the text colour but without changing the font nor
the text background), the values of the default style will be used for them.
If there is no default style, the attributes of the text control itself are
used.

So the following code correctly describes what it does: the second call
to \helpref{SetDefaultStyle}{wxtextctrlsetdefaultstyle} doesn't change the
text foreground colour (which stays red) while the last one doesn't change the
background colour (which stays grey):

{\small%
\begin{verbatim}
    text->SetDefaultStyle(wxTextAttr(*wxRED));
    text->AppendText("Red text\n");
    text->SetDefaultStyle(wxTextAttr(wxNullColour, *wxLIGHT_GREY));
    text->AppendText("Red on grey text\n");
    text->SetDefaultStyle(wxTextAttr(*wxBLUE);
    text->AppendText("Blue on grey text\n");
\end{verbatim}
}%

\wxheading{wxTextCtrl and C++ streams}

This class multiply-inherits from {\bf streambuf} where compilers allow,
allowing code such as the following:

{\small%
\begin{verbatim}
  wxTextCtrl *control = new wxTextCtrl(...);

  ostream stream(control)

  stream << 123.456 << " some text\n";
  stream.flush();
\end{verbatim}
}%

If your compiler does not support derivation from {\bf streambuf} and gives a
compile error, define the symbol {\bf NO\_TEXT\_WINDOW\_STREAM} in the
wxTextCtrl header file.

Note that independently of this setting you can always use wxTextCtrl itself
in a stream-like manner:

{\small%
\begin{verbatim}
  wxTextCtrl *control = new wxTextCtrl(...);

  *control << 123.456 << " some text\n";
\end{verbatim}
}%

always works. However the possibility to create an ostream associated with
wxTextCtrl may be useful if you need to redirect the output of a function
taking an ostream as parameter to a text control.

Another commonly requested need is to redirect {\bf std::cout} to the text
control. This could be done in the following way:

{\small%
\begin{verbatim}
  #include <iostream>

  wxTextCtrl *control = new wxTextCtrl(...);

  std::streambuf *sbOld = std::cout.rdbuf();
  std::cout.rdbuf(*control);

  // use cout as usual, the output appears in the text control
  ...

  std::cout.rdbuf(sbOld);
\end{verbatim}
}%

But wxWidgets provides a convenient class to make it even simpler so instead
you may just do

{\small%
\begin{verbatim}
  #include <iostream>

  wxTextCtrl *control = new wxTextCtrl(...);

  wxStreamToTextRedirector redirect(control);

  // all output to cout goes into the text control until the exit from current
  // scope
\end{verbatim}
}%

See \helpref{wxStreamToTextRedirector}{wxstreamtotextredirector} for more
details.

\wxheading{Constants}

The values below are the possible return codes of the
\helpref{HitTest}{wxtextctrlhittest} method:

{\small
\begin{verbatim}
// the point asked is ...
enum wxTextCtrlHitTestResult
{
    wxTE_HT_UNKNOWN = -2,   // this means HitTest() is simply not implemented
    wxTE_HT_BEFORE,         // either to the left or upper
    wxTE_HT_ON_TEXT,        // directly on
    wxTE_HT_BELOW,          // below [the last line]
    wxTE_HT_BEYOND          // after [the end of line]
};
// ... the character returned
\end{verbatim}
}


\wxheading{Event handling}

The following commands are processed by default event handlers in wxTextCtrl: wxID\_CUT, wxID\_COPY,
wxID\_PASTE, wxID\_UNDO, wxID\_REDO. The associated UI update events are also processed
automatically, when the control has the focus.

To process input from a text control, use these event handler macros to direct input to member
functions that take a \helpref{wxCommandEvent}{wxcommandevent} argument.

\twocolwidtha{7cm}%
\begin{twocollist}\itemsep=0pt
\twocolitem{{\bf EVT\_TEXT(id, func)}}{Respond to a wxEVT\_COMMAND\_TEXT\_UPDATED event,
generated when the text changes. Notice that this event will always be sent
when the text controls contents changes - whether this is due to user input or
comes from the program itself (for example, if SetValue() is called)}
\twocolitem{{\bf EVT\_TEXT\_ENTER(id, func)}}{Respond to a wxEVT\_COMMAND\_TEXT\_ENTER event,
generated when enter is pressed in a text control (which must have
wxTE\_PROCESS\_ENTER style for this event to be generated).}
\twocolitem{{\bf EVT\_TEXT\_URL(id, func)}}{A mouse event occurred over an URL
in the text control (wxMSW and wxGTK2 only)}
\twocolitem{{\bf EVT\_TEXT\_MAXLEN(id, func)}}{User tried to enter more text
into the control than the limit set by
\helpref{SetMaxLength}{wxtextctrlsetmaxlength}.}
\end{twocollist}%

\latexignore{\rtfignore{\wxheading{Members}}}


\membersection{wxTextCtrl::wxTextCtrl}\label{wxtextctrlctor}

\func{}{wxTextCtrl}{\void}

Default constructor.

\func{}{wxTextCtrl}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
\param{const wxString\& }{value = ``"}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
\param{long}{ style = 0}, \param{const wxValidator\& }{validator = wxDefaultValidator}, \param{const wxString\& }{name = wxTextCtrlNameStr}}

Constructor, creating and showing a text control.

\wxheading{Parameters}

\docparam{parent}{Parent window. Should not be NULL.}

\docparam{id}{Control identifier. A value of -1 denotes a default value.}

\docparam{value}{Default text value.}

\docparam{pos}{Text control position.}

\docparam{size}{Text control size.}

\docparam{style}{Window style. See \helpref{wxTextCtrl}{wxtextctrl}.}

\docparam{validator}{Window validator.}

\docparam{name}{Window name.}

\wxheading{Remarks}

The horizontal scrollbar ({\bf wxHSCROLL} style flag) will only be created
for multi-line text controls.
Without a horizontal scrollbar, text lines that don't fit in the control's
size will be wrapped (but no newline character is inserted). Single line
controls don't have a horizontal scrollbar, the text is automatically scrolled
so that the \helpref{insertion point}{wxtextctrlgetinsertionpoint} is always
visible.

% VZ: this is no longer true
%Under Windows, if the {\bf wxTE\_MULTILINE} style is used, the window is implemented
%as a Windows rich text control with unlimited capacity. Otherwise, normal edit control limits
%apply.

\wxheading{See also}

\helpref{wxTextCtrl::Create}{wxtextctrlcreate}, \helpref{wxValidator}{wxvalidator}


\membersection{wxTextCtrl::\destruct{wxTextCtrl}}\label{wxtextctrldtor}

\func{}{\destruct{wxTextCtrl}}{\void}

Destructor, destroying the text control.


\membersection{wxTextCtrl::AppendText}\label{wxtextctrlappendtext}

\func{void}{AppendText}{\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::CanCopy}\label{wxtextctrlcancopy}

\func{virtual bool}{CanCopy}{\void}

Returns {\tt true} if the selection can be copied to the clipboard.


\membersection{wxTextCtrl::CanCut}\label{wxtextctrlcancut}

\func{virtual bool}{CanCut}{\void}

Returns {\tt true} if the selection can be cut to the clipboard.


\membersection{wxTextCtrl::CanPaste}\label{wxtextctrlcanpaste}

\func{virtual bool}{CanPaste}{\void}

Returns {\tt true} if the contents of the clipboard can be pasted into the
text control. On some platforms (Motif, GTK) this is an approximation
and returns {\tt true} if the control is editable, {\tt false} otherwise.


\membersection{wxTextCtrl::CanRedo}\label{wxtextctrlcanredo}

\func{virtual bool}{CanRedo}{\void}

Returns {\tt true} if there is a redo facility available and the last operation
can be redone.


\membersection{wxTextCtrl::CanUndo}\label{wxtextctrlcanundo}

\func{virtual bool}{CanUndo}{\void}

Returns {\tt true} if there is an undo facility available and the last operation
can be undone.


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区精品| 亚洲国产精品t66y| 青青草精品视频| 欧美va亚洲va在线观看蝴蝶网| 麻豆精品视频在线| 精品国产一区a| 国产精品性做久久久久久| 欧美国产激情一区二区三区蜜月| 成人av高清在线| 亚洲精品少妇30p| 欧美久久一二三四区| 久久黄色级2电影| 日本一区二区久久| 欧美性生交片4| 国产毛片一区二区| 综合分类小说区另类春色亚洲小说欧美| 97超碰欧美中文字幕| 亚洲电影第三页| 久久综合视频网| 成人av网站免费| 婷婷国产在线综合| 久久久噜噜噜久久人人看| 91日韩在线专区| 日韩精品一二三四| 国产精品你懂的在线| 欧美日韩第一区日日骚| 粉嫩一区二区三区在线看| 亚洲色图在线视频| 欧美va在线播放| 日本丶国产丶欧美色综合| 麻豆精品国产传媒mv男同| 国产精品美女久久久久久久久| 欧美视频在线播放| 国产91精品一区二区麻豆亚洲| 亚洲一区二区影院| 久久久综合九色合综国产精品| 欧美三级韩国三级日本三斤| 国产精品一二一区| 日本不卡一区二区| 亚洲久草在线视频| 国产欧美一区在线| 欧美一区二区三区的| 99精品热视频| 国内成人免费视频| 日本不卡视频在线| 亚洲与欧洲av电影| 成人欧美一区二区三区1314| 欧美xxxxx牲另类人与| 欧美视频一区在线| 91麻豆成人久久精品二区三区| 国产精品一区二区三区乱码| 日韩精品乱码av一区二区| 亚洲欧美激情在线| 国产精品五月天| 久久久久国色av免费看影院| 91精选在线观看| 欧美另类一区二区三区| 色综合久久综合中文综合网| 成人黄色在线视频| 国产成人精品亚洲午夜麻豆| 久久99国产精品麻豆| 日韩精品欧美成人高清一区二区| 亚洲黄色免费网站| 亚洲美女免费视频| 亚洲视频在线观看三级| 亚洲欧洲国产日本综合| 国产欧美日本一区二区三区| wwww国产精品欧美| 日韩精品一区二区三区四区视频 | 国产精品1024久久| 喷水一区二区三区| 青椒成人免费视频| 美女精品一区二区| 日韩成人精品在线| 日本不卡视频在线| 蜜桃一区二区三区四区| 日韩 欧美一区二区三区| 日韩影院在线观看| 蜜臀av一区二区在线观看| 日韩不卡一区二区三区| 麻豆精品国产传媒mv男同| 精品一区二区在线视频| 精品写真视频在线观看| 国内精品第一页| 国产一区二区成人久久免费影院| 韩日欧美一区二区三区| 韩国精品主播一区二区在线观看| 久久草av在线| 国产麻豆91精品| 成人免费观看男女羞羞视频| 国产白丝网站精品污在线入口| 国产成人精品影视| 色天使色偷偷av一区二区| 欧美三级中文字| 精品国产免费视频| 亚洲国产精品成人综合色在线婷婷| 日韩毛片精品高清免费| 亚洲国产精品久久久久秋霞影院| 日韩福利电影在线观看| 国产一区二区精品在线观看| 99国产精品视频免费观看| 欧美日韩免费高清一区色橹橹| 制服丝袜中文字幕亚洲| 国产午夜精品一区二区三区视频 | 日韩欧美国产电影| 国产亚洲综合av| 亚洲男人的天堂在线aⅴ视频 | 亚洲美女视频一区| 青青草伊人久久| 成人性生交大片免费| 欧美四级电影在线观看| 久久天天做天天爱综合色| 综合久久久久久| 奇米精品一区二区三区在线观看一| 国产激情视频一区二区在线观看| 91浏览器打开| 日韩免费成人网| 亚洲欧美日韩在线播放| 久久99久久精品欧美| 不卡的av在线播放| 欧美精品一卡二卡| 国产精品五月天| 奇米色777欧美一区二区| av在线这里只有精品| 日韩欧美一区中文| 国产精品乱码妇女bbbb| 青青草精品视频| 色系网站成人免费| 久久久精品人体av艺术| 日精品一区二区| eeuss国产一区二区三区| 亚洲精品一区二区三区蜜桃下载| 亚洲综合视频网| 成人激情小说网站| 91精品国产色综合久久不卡蜜臀| 中文字幕亚洲欧美在线不卡| 精品一区二区三区日韩| 欧美伊人久久久久久午夜久久久久| 26uuu色噜噜精品一区| 偷窥国产亚洲免费视频| 成人av动漫在线| 国产日韩在线不卡| 美国十次综合导航| 欧美自拍偷拍一区| 一区在线观看视频| 国产乱码精品1区2区3区| 91精品国产一区二区三区| 亚洲码国产岛国毛片在线| 国产aⅴ综合色| 久久午夜国产精品| 久久丁香综合五月国产三级网站| 欧美日韩日日摸| 亚洲一区视频在线观看视频| 成人97人人超碰人人99| 中文字幕不卡三区| 国产乱码精品一区二区三区av| 欧美va亚洲va香蕉在线| 日本最新不卡在线| 91麻豆精品91久久久久同性| 亚洲va国产va欧美va观看| 精品视频在线免费看| 亚洲五月六月丁香激情| 在线欧美日韩精品| 亚洲精选在线视频| 在线影院国内精品| 有坂深雪av一区二区精品| www.欧美色图| 亚洲视频在线观看三级| 在线观看国产日韩| 丝袜美腿一区二区三区| 在线播放国产精品二区一二区四区 | 中文字幕一区在线观看| 国产成人精品影视| 中文字幕一区二区不卡 | 91精品国产欧美一区二区| 亚洲乱码国产乱码精品精的特点 | 日本系列欧美系列| 制服丝袜亚洲播放| 麻豆国产欧美日韩综合精品二区 | 专区另类欧美日韩| 欧洲视频一区二区| 日日夜夜精品视频免费| 欧美一区二区三区四区久久| 激情综合网av| 国产精品久久久久久亚洲伦| 91麻豆国产福利在线观看| 一区二区三区四区精品在线视频| 欧美午夜影院一区| 青青青爽久久午夜综合久久午夜| 久久色在线观看| 色综合色综合色综合| 琪琪久久久久日韩精品| 久久久久久久精| 色哟哟国产精品| 久久精品久久综合| 日本一区二区成人| 欧美日韩精品免费观看视频| 久久成人久久鬼色| 国产精品久久久久久久久免费丝袜 | 99免费精品视频|