added wxTextCtrl::EmulateKeyPress

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-04-07 22:29:04 +00:00
parent 15bee36fdf
commit 94af7d45ef
7 changed files with 121 additions and 67 deletions

View File

@@ -143,6 +143,7 @@ All (GUI):
- added wxImage::FloodFill and implemented wxWindowDC::DoFloodFill method
for GTK+, Mac, MGL, X11, Motif ports (Chris Elliott)
- added (platform-dependent) scan code to wxKeyEvent (Bryce Denney)
- added wxTextCtrl::EmulateKeyPress()
wxMSW:

View File

@@ -395,6 +395,20 @@ Copies the selected text to the clipboard and removes the selection.
Resets the internal `modified' flag as if the current edits had been saved.
\membersection{wxTextCtrl::EmulateKeyPress}
\func{bool}{EmulateKeyPress}{\param{const wxKeyEvent\& }{event}}
This functions inserts into the control the character which would have been
inserted if the given key event had occured in the text control. The
{\it event} object should be the same as the one passed to {\tt EVT\_KEY\_DOWN}
handler previously by wxWindows.
\wxheading{Return value}
{\tt TRUE} if the event resulted in a change to the control, {\tt FALSE}
otherwise.
\membersection{wxTextCtrl::GetDefaultStyle}\label{wxtextctrlgetdefaultstyle}
\constfunc{const wxTextAttr\& }{GetDefaultStyle}{\void}