wxWidgets/include/wx/msw
Vadim Zeitlin 0d04792116 Show full text in single line MSW wxTextCtrl if possible
A single line MSW wxTextCtrl created with a value too long to fit into
it continued showing the value only partially even if its size was
subsequently increased to allow the entire value to be shown.

This apparently happens because changing the native EDIT control size
doesn't affect its (horizontal) scroll offset. Moreover, there doesn't
seem to be any way to explicitly tell the control to update it neither,
except for changing its text.

So do change its text every time its width changes, as long as it is not
visible (because visible jumps in the visible text position could be an
even worse problem than the one we're trying to solve here). This fixes
the originally reported bug at the cost of a bunch of extra calls to
DoWriteText() which should hopefully be not too expensive for single
line controls that don't typically contain that much text.

Closes #18268.
2021-01-30 20:43:14 +01:00
..
ole Apply implicit encoding check to wxDataFormat ctor in wxMSW too 2020-07-17 17:52:16 +02:00
private Simplify and make more robust wxWebViewEdge initialization 2021-01-25 00:15:24 +01:00
rt Fix inconsistent use of boolean and HRESULT 2020-05-06 01:52:24 +02:00
accel.h
amd64_dpi_aware_pmv2.manifest Rename manifests to use underscores 2019-12-13 21:44:26 +01:00
amd64_dpi_aware.manifest Rename manifests to use underscores 2019-12-13 21:44:26 +01:00
amd64.manifest Use "wxWidgets application" in the manifests descriptions 2019-11-22 15:21:15 +01:00
anybutton.h
app.h Don't rely on getting WM_NULL messages in wxIdleWakeUpModule 2018-01-13 17:33:09 +01:00
appprogress.h
apptbase.h
apptrait.h added wxQT declaration of wxGUIAppTraits 2018-08-03 02:33:06 +03:00
arm64.manifest Use "wxWidgets application" in the manifests descriptions 2019-11-22 15:21:15 +01:00
arm.manifest Use "wxWidgets application" in the manifests descriptions 2019-11-22 15:21:15 +01:00
bitmap.h Remove checks for wxNEEDS_CHARPP 2020-10-19 20:07:16 +02:00
blank.cur
bmpbuttn.h Add possibility to create "Close" bitmap button from XRC 2020-11-19 15:44:54 +01:00
bmpcbox.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
brush.h
bullseye.cur
button.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
calctrl.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
caret.h
cdrom.ico
checkbox.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
checklst.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
child.ico
chkconf.h Disable wxUSE_WEBREQUEST when using MinGW32 2020-12-13 17:17:06 +01:00
choice.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
clipbrd.h Fix spelling in comments and documentation using codespell 2020-06-27 22:56:22 +02:00
colordlg.h Make wxColourData parameter of wxColourDialog ctor const 2019-07-16 20:19:33 +02:00
colour.h
colours.bmp
combo.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
combobox.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
commandlinkbutton.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
computer.ico
control.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
crashrpt.h
cross.cur
csquery.bmp
ctrlsub.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
cursor.h
custombgwin.h
datectrl.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
datetimectrl.h Add wxDateTimePickerCtrl::SetNullText() 2020-11-05 14:22:05 +01:00
dc.h Implement platform-specific coordinate conversion functions 2020-09-27 10:38:08 +02:00
dcclient.h
dcmemory.h
dcprint.h
dcscreen.h
dde.h Eliminate -Wcast-qual warnings with GCC and Clang 2020-02-02 22:50:32 -08:00
debughlp.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
dialog.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
dib.h Add real support for monochrome bitmaps to wxMSW 2020-10-20 15:52:55 +02:00
dirdlg.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
dragimag.h
drive.ico
enhmeta.h Eliminate -Wzero-as-null-pointer-constant warnings in the headers 2020-02-02 23:40:01 -08:00
evtloop.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
evtloopconsole.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
fdrepdlg.h
file1.ico
filedlg.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
floppy.ico
folder1.ico
folder2.ico
font.h Add wxWindow::WXAdjustFontToOwnPPI() 2020-08-31 14:45:02 +02:00
fontdlg.h Implement wxFontDialog::SetTitle() in wxMSW 2018-07-30 16:11:25 +02:00
frame.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
fswatcher.h
gauge.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
gccpriv.h Remove HAVE_W32API_H definition and checks 2020-10-20 01:47:47 +02:00
gdiimage.h Eliminate -Wzero-as-null-pointer-constant warnings in the headers 2020-02-02 23:40:01 -08:00
genrcdefs.h Add MSW manifests for ARM and ARM64 platforms 2019-11-22 15:17:40 +01:00
glcanvas.h
hand.cur
headerctrl.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
helpbest.h
helpchm.h
helpwin.h
htmlhelp.h
hyperlink.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
ia64.manifest Use "wxWidgets application" in the manifests descriptions 2019-11-22 15:21:15 +01:00
icon.h Remove checks for wxNEEDS_CHARPP 2020-10-19 20:07:16 +02:00
imaglist.h Fix adding wxBitmap with mask to wxImageList not supporting masks (wxMSW) 2021-01-12 18:20:56 +01:00
iniconf.h
init.h Resolve removal of the rest of BCC-affected 2020-10-14 20:11:58 +02:00
joystick.h Don’t use void for functions without arguments 2019-10-02 00:54:14 +02:00
libraries.h Remove MSW wxUxThemeEngine class 2018-01-22 00:51:11 +01:00
listbox.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
listctrl.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
magnif1.cur
mdi.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
mdi.ico
menu.h Fix spelling in comments and documentation using codespell 2020-06-27 22:56:22 +02:00
menuitem.h
metafile.h Avoid -Wdouble-promotion warnings in headers 2020-07-20 08:12:02 -07:00
mfc.h Fix compilation of MFC support code in MSVS conformance mode 2019-03-18 18:11:42 +01:00
mimetype.h Fix spelling in comments and documentation using codespell 2020-06-27 22:56:22 +02:00
minifram.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
missing.h Add framework for Per-Monitor DPI Awareness on Windows 2019-08-24 22:30:11 +02:00
msgdlg.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
msvcrt.h Remove the last remnants of Windows CE related code 2019-05-18 08:40:03 +02:00
nonownedwnd.h Fix IsEnabled() return value for wxMSW TLWs with native dialogs 2020-11-19 15:44:54 +01:00
notebook.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
ownerdrawnbutton.h Define ~wxMSWOwnerDrawnButtonBase() for all compilers 2021-01-27 23:46:35 +01:00
ownerdrw.h
palette.h
panel.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
pbrush.cur
pen.h Introduce wxPenInfo class 2017-09-10 01:02:06 +02:00
pencil.cur
pntleft.cur
pntright.cur
popupwin.h Fix crash when destroying wxPopupWindow without hiding it first 2020-08-14 13:15:49 +02:00
printdlg.h
printwin.h
private.h Add wxRESERVED_PARAM symbolic constant and use it instead of 0 2021-01-09 21:31:41 +01:00
progdlg.h Fix spelling in comments and documentation using codespell 2020-06-27 22:56:22 +02:00
question.ico
radiobox.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
radiobut.h Make wxRadioButtonBase a plain class, not template 2020-09-21 18:01:37 +02:00
rcdefs.h Add MSW manifests for ARM and ARM64 platforms 2019-11-22 15:17:40 +01:00
regconf.h
region.h
registry.h Eliminate -Wzero-as-null-pointer-constant warnings in the headers 2020-02-02 23:40:01 -08:00
removble.ico
richmsgdlg.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
roller.cur
scrolbar.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
seh.h Remove BCC-specific conditionally compiled code 2020-10-13 18:40:31 +02:00
setup0.h Simplify wxUSE_WEBREQUEST_XXX logic 2020-12-13 16:34:47 +01:00
setup_inc.h Simplify wxUSE_WEBREQUEST_XXX logic 2020-12-13 16:34:47 +01:00
slider.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
sound.h
spinbutt.h
spinctrl.h Fix focus behaviour of the spin control under MSW 2019-11-01 00:27:43 +07:00
stackwalk.h Use wxOVERRIDE for wxStackWalker and wxStackFrame in wxMSW 2020-08-31 12:40:50 +02:00
statbmp.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
statbox.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
statline.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
stattext.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
statusbar.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
std.ico
stdpaths.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
subwin.h Add a simple wxSetWindowFont() helper 2019-07-12 00:11:53 +02:00
taskbar.h Handle taskbar updates not removing notification icons from it 2019-11-18 19:14:38 +01:00
taskbarbutton.h
textctrl.h Show full text in single line MSW wxTextCtrl if possible 2021-01-30 20:43:14 +01:00
textentry.h Add wxTextEntry::ClickDefaultButtonIfPossible() to wxMSW 2019-07-14 01:37:32 +02:00
tglbtn.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
timectrl.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
tls.h
toolbar.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
tooltip.h
toplevel.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
treectrl.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
uxtheme.h Replace tabs with spaces 2020-12-23 17:03:10 +01:00
webview_edge.h WebViewEdge: Allow edge webview2 installation during runtime 2020-11-06 09:19:17 +01:00
webview_ie.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
webviewhistoryitem_ie.h Apply suggestions from code review 2020-01-16 10:15:11 +01:00
window.h Add wxWindow::WXAdjustFontToOwnPPI() 2020-08-31 14:45:02 +02:00
winundef.h Fix broken non-Unicode MSW build 2020-04-13 16:41:33 +02:00
winver.h Target latest Windows API in wxMSW 2017-04-08 21:48:47 +02:00
wrapcctl.h
wrapcdlg.h
wrapgdip.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
wrapshl.h Globally replace vadim@wxwindows.org with vadim@wxwidgets.org 2019-04-22 14:12:05 +02:00
wrapwin.h Add wxUSE_WINSOCK2 wxMSW option to include winsock2.h 2019-01-28 00:34:34 +01:00
wx_dpi_aware_pmv2.manifest Rename manifests to use underscores 2019-12-13 21:44:26 +01:00
wx_dpi_aware.manifest Rename manifests to use underscores 2019-12-13 21:44:26 +01:00
wx.manifest Use "wxWidgets application" in the manifests descriptions 2019-11-22 15:21:15 +01:00
wx.rc Replace tabs with spaces 2020-12-23 17:03:10 +01:00