Added knowledge of virtual size to wx(Scrolled)Windows, they can now
manage their own scrollbars with the help of a sizer or other user clues (SetVirtualSizeHints) without the need for an ancillary container. Added SetSizerAndFit convenience method. SetSizer now enables/disables AutoLayout automagically. Logic bugfix for scrollsub sample. Syntax bugfix in parser.y. Compiler warning fix in textctrl.cpp. Modified Files: docs/latex/wx/scrolwin.tex docs/latex/wx/sizer.tex docs/latex/wx/window.tex include/wx/scrolwin.h include/wx/sizer.h include/wx/window.h include/wx/generic/scrolwin.h include/wx/gtk/scrolwin.h samples/scrollsub/scrollsub.cpp src/common/parser.y src/common/sizer.cpp src/common/wincmn.cpp src/generic/scrlwing.cpp src/gtk/scrolwin.cpp src/msw/textctrl.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -701,8 +701,8 @@ bool wxTextCtrl::EmulateKeyPress(const wxKeyEvent& event)
|
||||
size_t lenOld = GetValue().length();
|
||||
|
||||
wxUint32 code = event.GetRawKeyCode();
|
||||
::keybd_event(code, 0, 0 /* key press */, NULL);
|
||||
::keybd_event(code, 0, KEYEVENTF_KEYUP, NULL);
|
||||
::keybd_event(code, 0, 0 /* key press */, 0);
|
||||
::keybd_event(code, 0, KEYEVENTF_KEYUP, 0);
|
||||
|
||||
// assume that any alphanumeric key changes the total number of characters
|
||||
// in the control - this should work in 99% of cases
|
||||
|
Reference in New Issue
Block a user