I have a problem on some Linux distributions where wxStaticText::Wrap() does not leave enough spacing between the lines. Note, this does not happen on all Linux distributions / Desktops.
A code example is as follows:
Code: Select all
wxString t1 = "A very long line of text";
wxStaticText * text1 = new wxStaticText(this, wxID_ANY, t1, wxDefaultPosition, wxDefaultSize, 0);
wxFont font = wxFont(FONT_SMALL, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false);
text1->SetFont(font);
text1->Wrap(350);
sizer_text->Add(text1, 0, wxTOP, 0);
sizer->Add(sizer_text, 0, wxALL | wxEXPAND, 10);
Can anybody advise on how to add extra space between the lines?
Thanks
Amanda