- _file = new wxStaticText (this, wxID_ANY, wxT ("This is the length of the file label"));
- _sizer->Add (_file, 1, wxEXPAND | wxALL, 6);
- _browse = new wxButton (this, wxID_ANY, _("Browse..."));
- _sizer->Add (_browse, 0);
+ wxClientDC dc (parent);
+ wxSize size = dc.GetTextExtent (wxT ("This is the length of the file label it should be quite long"));
+ size.SetHeight (-1);