]> git.saurik.com Git - wxWidgets.git/commit - tests/test.bkl
Fix function wxControlBase::DoEllipsizeSingleLine to really make sure that the ellips...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 10 Mar 2010 13:57:47 +0000 (13:57 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 10 Mar 2010 13:57:47 +0000 (13:57 +0000)
commita37da0fa555e3399a36e0c7cbc4ea96a4bf4d4f0
tree76fb8582919fa2cb2fde3722a053ba021ac6be49
parent8ab11e46c06426166aea386258e8fc3a771eeb93
Fix function wxControlBase::DoEllipsizeSingleLine to really make sure that the ellipsized string takes less pixels than maxFinalWidthPx.
Add comments to explain in more details what the function does and in particular the valid ranges of all internal variables; fix in that regard both the code of both wxELLIPSIZE_START, wxELLIPSIZE_MIDDLE and wxELLIPSIZE_END.
Add more asserts to check the valid ranges and turn a couple of time-expensive checks in level-2 asserts.
Add a test unit for the wxControl::Ellipsize function.
Fix minor details in the docs of wxControl::Ellipsize.
Closes #11567.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
13 files changed:
interface/wx/control.h
src/common/ctrlcmn.cpp
tests/Makefile.in
tests/graphics/ellipsization.cpp [new file with mode: 0644]
tests/makefile.bcc
tests/makefile.gcc
tests/makefile.vc
tests/makefile.wat
tests/test.bkl
tests/test_test_gui.dsp
tests/test_vc7_test_gui.vcproj
tests/test_vc8_test_gui.vcproj
tests/test_vc9_test_gui.vcproj