wxWidgets/include/wx/msw
Vadim Zeitlin 40aa1a7e60 Implement GetSizeFromTextSize() for wxSpinCtrl.
Implement it for the native MSW and GTK versions and the generic one used in
the other ports and also for wxSpinCtrlDouble under MSW.

Also test this function in the spin page of the widgets sample.

Closes #14840.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-20 12:49:53 +00:00
..
ole Provide stand-in IDropTargetHelper definition to fix VC6 build. 2012-10-14 14:42:58 +00:00
private Allow creating wxTextMeasure without specifying the font. 2012-11-01 17:15:22 +00:00
wince Add wxUSE_COMPILER_TLS to allow disabling compiler TLS support. 2012-06-17 21:34:47 +00:00
accel.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
amd64.manifest Manifest files for win64 2005-10-12 11:47:09 +00:00
anybutton.h Refactor wxButton and wxToggleButton to derive from wxAnyButton. 2011-06-14 13:00:42 +00:00
app.h Define wxEntry() with WinMain-compatible signature for all Windows ports. 2012-06-30 16:33:28 +00:00
apptbase.h Add wxUSE_THREADS checks around wxMSW functions dealing with threads. 2011-03-22 17:15:56 +00:00
apptrait.h Define wxGUIAppTraits for wxGTK/Windows port. 2012-07-23 15:03:30 +00:00
bitmap.h Add wxBitmap::NewFromPNGData() for creating bitmaps from PNG data. 2012-09-13 17:15:00 +00:00
blank.cur
bmpbuttn.h Refactor wxButton and wxToggleButton to derive from wxAnyButton. 2011-06-14 13:00:42 +00:00
bmpcbox.h Make SetFont() public (fixes #9641) 2010-07-25 07:39:17 +00:00
brush.h declare future-deprecated SetStyle(int) in wxPen/Brush and not wxPen/BrushBase as it's useless there (compilation of user code doing pen.SetStyle(wxDOT) still fails) 2008-06-17 17:28:26 +00:00
bullseye.cur Add white outline to bulls eye cursor used under MSW. 2010-03-16 14:48:02 +00:00
button.h Ensure that Enter key presses are never stolen from wxButton in wxMSW. 2011-12-11 17:03:56 +00:00
calctrl.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
caret.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
cdrom.ico Made the colours more muted 2005-06-01 14:21:07 +00:00
checkbox.h Correct best size computation for wxCheckBox with borders under MSW. 2012-09-23 22:48:16 +00:00
checklst.h Improve wxCheckListBox appearance under Vista/Win7. 2010-01-23 13:22:00 +00:00
child.ico REmoved unnecessary cursor and icon files 2005-05-15 14:48:42 +00:00
chkconf.h Remove support for MetroWerks CodeWarrior compiler. 2012-04-05 18:40:11 +00:00
choice.h Implement DoGetSizeFromTextSize() for wxMSW wx{Choice,Combobox,TextCtrl}. 2012-11-14 13:47:59 +00:00
clipbrd.h Include wx/dataobj.h from wx/clipbrd.h. 2009-07-20 23:54:08 +00:00
colordlg.h Move wxColourData and wxFontData into separate files. 2011-01-07 05:26:57 +00:00
colour.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
colours.bmp
combo.h To have better support for themed and custom backgrounds for wxMSW wxComboCtrl, use WS_EX_COMPOSITED and wxBG_STYLE_ERASE instead of custom double-buffering (when made possible by the OS version) 2011-03-22 09:56:40 +00:00
combobox.h Implement DoGetSizeFromTextSize() for wxMSW wx{Choice,Combobox,TextCtrl}. 2012-11-14 13:47:59 +00:00
commandlinkbutton.h Add new wxCommandLinkButton class. 2010-08-17 14:48:50 +00:00
computer.ico Made the colours more muted 2005-06-01 14:21:07 +00:00
control.h Move wxControl::GetCompositeControlsDefaultAttributes() from MSW to common. 2009-09-26 16:43:06 +00:00
crashrpt.h take wxString in wxCrashReport::SetFileName() to allow passing either ASCII or wide strings as well as wxStrings to this method (closes 9505) 2008-05-29 13:28:05 +00:00
cross.cur Cross-hair cursor appears as an I-beam on WinXP for some reason; 2005-04-03 11:36:31 +00:00
csquery.bmp Restored scrollbar background 2005-05-31 14:40:34 +00:00
ctrlsub.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
cursor.h provide backward-compat wxCursor(int) ctor; remove empty stubs of XBM ctor from all ports except gtk,motif; make all ports emit wxLogError on invalid bitmap types; implement wxCursor(const wxString&, ...) ctor on GTK (not tested yet) 2008-09-25 17:56:07 +00:00
custombgwin.h Move SetBackgroundBitmap() from wxPanel to new wxCustomBackgroundWindow. 2011-10-11 17:07:43 +00:00
datectrl.h Refactor wxDatePickerCtrl to derive from wxDateTimePickerCtrl. 2011-09-29 13:43:02 +00:00
datetimectrl.h Dirty hack to allow generic wxDatePickerCtrl to compile under MSW. 2011-10-20 16:45:48 +00:00
dc.h wxDC::GetHandle support for wxMSW 2012-07-28 19:31:09 +00:00
dcclient.h Cache HDC used for painting for the entire duration of WM_PAINT processing. 2012-11-10 00:52:54 +00:00
dcmemory.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dcprint.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
dcscreen.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
dde.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
debughlp.h Implement wxStackWalker for wxMSW under x86-64. 2011-11-27 19:52:13 +00:00
dialog.h No changes, just implement Raise() in wxTopLevelWindow in wxMSW. 2012-02-05 14:18:22 +00:00
dib.h Fix wxMSW compilation without PCH. 2012-07-01 22:39:41 +00:00
dirdlg.h Use new style directory selection dialog under Vista and later. 2012-04-15 23:18:12 +00:00
dragimag.h Make wxDragImage ctors taking hot spot point really deprecated in wxMSW. 2012-02-15 00:35:25 +00:00
drive.ico Made the colours more muted 2005-06-01 14:21:07 +00:00
enhmeta.h Make wxEnhMetaFileDC ctor from wxDC explicit. 2011-07-21 13:49:59 +00:00
evtloop.h Use the same console event loop in wxBase and wxCore in wxMSW. 2012-07-10 23:52:00 +00:00
evtloopconsole.h Use the same console event loop in wxBase and wxCore in wxMSW. 2012-07-10 23:52:00 +00:00
fdrepdlg.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
file1.ico Made the colours more muted 2005-06-01 14:21:07 +00:00
filedlg.h Make wxFileDialog::Set/SetPath() behave consistently. 2009-11-26 16:17:00 +00:00
floppy.ico Artwork replacement (c) Julian Smart 2005-05-31 20:29:11 +00:00
folder1.ico Made the colours more muted 2005-06-01 14:21:07 +00:00
folder2.ico Made the colours more muted 2005-06-01 14:21:07 +00:00
font.h Add support for stricken-through fonts. 2012-01-23 11:28:28 +00:00
fontdlg.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
frame.h No changes, just implement Raise() in wxTopLevelWindow in wxMSW. 2012-02-05 14:18:22 +00:00
fswatcher.h Implement watching directory correctly in MSW wxFileSystemWatcher. 2011-05-03 23:31:39 +00:00
gauge.h Fixed various typos. 2011-03-22 14:17:38 +00:00
gccpriv.h Macros for simplified testing Open Watcom version and required tweaks. 2005-11-10 16:16:05 +00:00
gdiimage.h Make wxRefCounter non copyable. 2010-12-14 18:43:49 +00:00
genrcdefs.h removed executable bit on files that aren't executables 2007-06-25 14:04:34 +00:00
glcanvas.h recreate the window if FSAA is requested (changeset_r54022_Fix.patch from #9145) 2008-06-14 01:44:13 +00:00
hand.cur Removed rarely-used cursor; replaced other cursors 2005-05-15 16:43:12 +00:00
headerctrl.h Make a couple virtuals protected so they can be overridden. 2012-07-10 06:42:15 +00:00
helpbest.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
helpchm.h Use wxString::t_str() in calls to Windows API functions in wxMSW. 2012-06-03 19:16:59 +00:00
helpwin.h Replace more DECLARE_CLASS occurrences with DECLARE_DYNAMIC_CLASS. 2011-06-07 16:48:36 +00:00
htmlhelp.h Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
hyperlink.h Provide native wxHyperlinkCtrl implementation for wxMSW. 2010-08-17 16:55:32 +00:00
ia64.manifest Manifest files for win64 2005-10-12 11:47:09 +00:00
icon.h replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents 2008-11-02 02:39:52 +00:00
imaglist.h Make wxImageList not copiable (fixes #10503), replace wxList with wxObjectList 2009-02-19 20:26:00 +00:00
iniconf.h Fix file paths in the header comments. 2010-07-13 13:29:58 +00:00
init.h Define wxEntry() with WinMain-compatible signature for all Windows ports. 2012-06-30 16:33:28 +00:00
joystick.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
libraries.h Move oleacc.lib from the VC++ projects/makefiles to libraries.h 2006-01-21 22:50:46 +00:00
listbox.h Don't try to determine the clicked item ourselves in wxMSW wxListBox. 2012-09-09 00:44:26 +00:00
listctrl.h Implement constrained best size calculation in wxMSW wxListCtrl. 2012-05-09 14:24:47 +00:00
magnif1.cur Removed rarely-used cursor; replaced other cursors 2005-05-15 16:43:12 +00:00
mdi.h Initialize wxMDIParentFrame::m_accelWindowMenu in default ctor. 2009-09-21 08:44:42 +00:00
mdi.ico REmoved unnecessary cursor and icon files 2005-05-15 14:48:42 +00:00
menu.h Implement wxMenuBar::EnableTop() for wxMSW and wxGTK. 2012-01-15 13:41:17 +00:00
menuitem.h Always provide wxMenuItem bitmap-related methods in wxMSW. 2012-03-04 00:29:55 +00:00
metafile.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
microwin.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
mimetype.h Removed most of the pre-XDG MIME code from the Unix implementation, many speed-ups by simplification 2008-06-30 11:58:41 +00:00
minifram.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
missing.h Add MUI_LANGUAGE_NAME to wx/msw/missing.h. 2012-09-08 10:53:16 +00:00
msgdlg.h Don't try to center task dialogs under Windows. 2010-11-22 12:49:07 +00:00
mslu.h move wxMSLU_xxx redefinitions of xxx() Windows functions to wx/msw/wrapwin.h as we have to define them after including <windows.h> and not before; also moved the rest of the wxMSLU redefinitions to wx/filefn.h where they're used as it doesn't make sense to keep only them in wx/msw/mslu.h 2006-10-26 19:06:51 +00:00
msvcrt.h replace more __WXDEBUG__ occurrences with wxDEBUG_LEVEL 2009-03-22 12:53:48 +00:00
nonownedwnd.h Added wxNonOwnedWindow::SetShape(wxGraphicsPath). 2011-10-18 21:56:52 +00:00
notebook.h Hack wxMSW wxNotebook to show the text controls correctly initially. 2011-11-22 13:18:45 +00:00
notifmsg.h Add missing "flags" argument to wxNotificationMessage ctor in wxMSW. 2012-04-28 22:25:23 +00:00
ownerdrw.h Refactor owner-drawing code. 2010-01-23 13:21:12 +00:00
palette.h Make wxPalette ctor and Create() const-correct in wxMSW. 2011-12-17 23:52:47 +00:00
panel.h fix tests for WXWIN_COMPATIBILITY_2_8, closes #13800 2011-12-23 05:59:59 +00:00
pbrush.cur Restoring binary files 2005-05-16 12:33:21 +00:00
pen.h declare future-deprecated SetStyle(int) in wxPen/Brush and not wxPen/BrushBase as it's useless there (compilation of user code doing pen.SetStyle(wxDOT) still fails) 2008-06-17 17:28:26 +00:00
pencil.cur Restoring binary files 2005-05-16 12:33:21 +00:00
pntleft.cur Removed rarely-used cursor; replaced other cursors 2005-05-15 16:43:12 +00:00
pntright.cur Removed rarely-used cursor; replaced other cursors 2005-05-15 16:43:12 +00:00
popupwin.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
printdlg.h Use wxPageSetupDialogData instead of old wxPageSetupData everywhere. 2012-02-20 21:55:55 +00:00
printwin.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
private.h Use wxString::t_str() in calls to Windows API functions in wxMSW. 2012-06-03 19:16:59 +00:00
progdlg.h Enable the HWND of the task dialog to be fetched with GetHandle if it is being used. 2011-09-10 03:26:37 +00:00
question.ico Replaced icon 2005-05-15 19:20:49 +00:00
radiobox.h Fix initial wxRadioBox buttons positions in wxMSW. 2012-02-02 14:26:06 +00:00
radiobut.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
rcdefs.h Add rcdefs.h and support for automatic manifests on Windows 2005-11-08 22:49:46 +00:00
regconf.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
region.h a few more int/wxPolygonFillMode substitutions in wxRegion and wxGraphicsContext code 2009-01-08 16:43:56 +00:00
registry.h Fixed various typos. 2011-03-22 14:17:38 +00:00
removble.ico Made the colours more muted 2005-06-01 14:21:07 +00:00
richmsgdlg.h Add wxRichMessageDialog class. 2010-08-18 22:48:41 +00:00
rightarr.cur Removed rarely-used cursor; replaced other cursors 2005-05-15 16:43:12 +00:00
roller.cur Removed rarely-used cursor; replaced other cursors 2005-05-15 16:43:12 +00:00
scrolbar.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
seh.h disable warning about _set_se_translator() requiring /EHa for VC9 too (it was disabled for up to VC8) 2009-06-06 23:27:37 +00:00
setup0.h Add wxUSE_COMPILER_TLS to allow disabling compiler TLS support. 2012-06-17 21:34:47 +00:00
setup_inc.h Add wxTimePickerCtrl class. 2011-09-29 13:43:15 +00:00
slider.h Fix showing slider label in wxMSW when wxSL_MIN_MAX_LABELS was not used. 2011-07-11 22:49:33 +00:00
sound.h Change wxSound ctor from in-memory data to use size_t/void *. 2011-09-21 15:08:02 +00:00
spinbutt.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
spinctrl.h Implement GetSizeFromTextSize() for wxSpinCtrl. 2012-11-20 12:49:53 +00:00
stackwalk.h don't use hardcoded constant 200; use wxSTACKWALKER_MAX_DEPTH instead 2009-01-14 14:38:00 +00:00
statbmp.h Fix wxStaticBitmap best size calculation in wxMSW. 2012-05-09 14:23:57 +00:00
statbox.h Revert r71595 for now, as the bug it fixed is the lesser of two evils with the potential bugs it causes. See #14453. 2012-07-08 03:48:55 +00:00
statline.h Fixed various typos. 2011-03-22 14:17:38 +00:00
stattext.h Added DoGetClientBestSize() and use it for a couple of controls in wxMSW. 2009-06-22 20:36:13 +00:00
statusbar.h Add missing wxUSE_TOOLTIPS and wxUSE_UXTHEME checks to wxMSW. 2012-01-10 17:01:09 +00:00
std.ico REmoved unnecessary cursor and icon files 2005-05-15 14:48:42 +00:00
stdpaths.h Added wxStandardPaths::MSWGetShellDir(). 2009-08-14 00:05:56 +00:00
subwin.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
taskbar.h Make wxTaskBarIcon's ctor have the same API on all platforms even though setting the icon type can only be done on wxOSX-cocoa 2012-04-20 05:41:54 +00:00
textctrl.h Revert all wxNOEXCEPT-related changes. 2012-11-20 12:49:03 +00:00
textentry.h Fix wxMSW wxTextEntry compilation in wxUSE_DYNLIB_CLASS==0 case. 2012-07-23 15:03:57 +00:00
tglbtn.h Refactor wxButton and wxToggleButton to derive from wxAnyButton. 2011-06-14 13:00:42 +00:00
timectrl.h Add wxTimePickerCtrl class. 2011-09-29 13:43:15 +00:00
tls.h No changes, synchronised source names that appear commented at the top of files with the actual path to the files. 2011-03-20 00:14:35 +00:00
toolbar.h Fixed parts of toolbar background not being drawn with older comctl32.dll. 2012-05-02 14:44:45 +00:00
tooltip.h No real changes, just use clearer names for wxMSW wxToolTip methods. 2012-04-05 13:55:51 +00:00
toplevel.h Removed redundant DoEnable 2012-03-12 11:42:49 +00:00
treectrl.h Freeze wxTreeCtrl in wxMSW by hiding it. 2012-10-13 22:52:35 +00:00
uxtheme.h Fix confusion with LOGFONT{A,W} parameters to MSW GetTheme[Sys]Font(). 2010-10-30 23:50:22 +00:00
uxthemep.h Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
webview_ie.h Explicitly unregister custom wxWebViewIE namespaces when we are done with them. Also add a missing ClassFactory::AddRef. 2012-10-21 20:33:48 +00:00
webview_missing.h Move wxWebViewIE missing definitions to webview_missing.h and add new definitions required for Find. 2012-09-10 20:02:58 +00:00
webviewhistoryitem_ie.h Minor changes, just trim trailing spaces in webview code. 2012-03-28 18:00:30 +00:00
window.h Implement horizontal mouse wheel events support for wxMSW. 2012-03-22 00:27:02 +00:00
winundef.h Don't use wxCHECK_W32API_VERSION() in #if when it can be undefined. 2012-05-23 21:16:41 +00:00
wrapcctl.h extract (and expand and clean up and document) the header window implementation used inside the generic wxDataViewCtrl in a separate wxHeaderCtrl class which could be reused in (generic) wxListCtrl and, most importantly, wxGrid later 2008-12-03 21:53:10 +00:00
wrapcdlg.h Include winundefs.h 2006-11-07 09:08:33 +00:00
wrapgdip.h extracted code including gdiplus.h in a separate header 2007-03-15 03:41:52 +00:00
wrapshl.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
wrapwin.h Provide HANDLE_PTR for the compilers without it such as VC6. 2011-11-17 16:43:34 +00:00
wx.manifest
wx.rc Remove support for MetroWerks CodeWarrior compiler. 2012-04-05 18:40:11 +00:00