Add wxControl::GetSizeFromTextSize() to size the control to its text.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Nov 2012 21:11:37 +0000 (21:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Nov 2012 21:11:37 +0000 (21:11 +0000)
commit7a78a9378207266c55b7f4c72fbfb2ae11963d0b
treeaba5d03c7f12ac17725e65c7f3c2a329ce982477
parentc017416682938c39547836051c0fad74db45e8a0
Add wxControl::GetSizeFromTextSize() to size the control to its text.

This function can be used to size a, say, wxTextCtrl to be exactly of the size
needed to enter the given amount of text in it.

This patch adds wxGTK implementation for wxTextCtrl, wxChoice and wxCombobox;
changes to the samples and the documentation.

Closes #14812.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
15 files changed:
docs/changes.txt
include/wx/control.h
include/wx/gtk/choice.h
include/wx/gtk/combobox.h
include/wx/gtk/control.h
include/wx/gtk/textctrl.h
interface/wx/control.h
samples/combo/combo.cpp
samples/controls/controls.cpp
samples/text/text.cpp
src/common/ctrlcmn.cpp
src/gtk/choice.cpp
src/gtk/combobox.cpp
src/gtk/control.cpp
src/gtk/textctrl.cpp