Ticket URL: <
http://trac.wxwidgets.org/ticket/14706#comment:12>
#14706: Choice changes for wxTextMeasure
-------------------------------------+--------------------------------------
Reporter: mmarsan | Owner:
Type: optimization | Status: confirmed
Priority: low | Milestone:
Component: GUI-all | Version: 2.9-svn
Keywords: choice combo textextent | Blockedby: 14705
Patch: 1 | Blocking:
-------------------------------------+--------------------------------------
Comment(by vadz):
For the reference, here is the code I used for testing:
{{{
#!diff
diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp
index a78e462..89b4682 100644
--- a/samples/minimal/minimal.cpp
+++ b/samples/minimal/minimal.cpp
@@ -172,6 +172,23 @@ bool MyApp::OnInit()
CreateStatusBar(2);
SetStatusText("Welcome to wxWidgets!");
#endif // wxUSE_STATUSBAR
+
+ wxString choices[] = { "first", "very very very very long", "last" };
+ wxSizer* sizer = new wxBoxSizer(wxVERTICAL);
+
+ wxChoice* c1 = new wxChoice(this, wxID_ANY);
+ sizer->Add(c1);
+
+ wxChoice* c2 = new wxChoice(this, wxID_ANY);
+ c2->Append(WXSIZEOF(choices), choices);
+ sizer->Add(c2);
+
+ wxChoice* c3 = new wxChoice(this, wxID_ANY);
+ c3->SetFont(wxNORMAL_FONT->Scaled(2));
+ c3->Append(WXSIZEOF(choices), choices);
+ sizer->Add(c3);
+
+ SetSizerAndFit(sizer);
}
}}}
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/14706#comment:12>