Message from discussion
#14706: Choice changes for wxTextMeasure
The group you are posting to is a
Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 |
From: "wxTrac" <nore...@wxsite.net>
Date: Thu, 01 Nov 2012 13:15:56 -0000
Local: Thurs, Nov 1 2012 9:15 am
Subject: Re: #14706: Choice changes for wxTextMeasure
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>
You must Sign in before you can post messages.
You do not have the permission required to post.
|