1. added GetClientAreaOrigin to wxWindow, calculations everywhere use it
2. added horz scrolling to the listbox and fixed thevertical one 3. added wxALWAYS_SHOW_SB (a.k.a. wxLB_ALWAYS_SB) style 4. corrected thumb size calculations git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -317,10 +317,13 @@ MyUnivFrame::MyUnivFrame(const wxString& title)
|
||||
};
|
||||
wxListBox *lbox = new wxListBox(this, -1, wxPoint(550, 10), wxDefaultSize,
|
||||
WXSIZEOF(choices), choices,
|
||||
wxLB_MULTIPLE);
|
||||
for ( int i = 0; i < 20; i++ )
|
||||
wxLB_MULTIPLE | wxLB_ALWAYS_SB);
|
||||
lbox = new wxListBox(this, -1, wxPoint(550, 300), wxDefaultSize,
|
||||
0, NULL, wxLB_HSCROLL);
|
||||
for ( int i = 1; i <= 20; i++ )
|
||||
{
|
||||
lbox->Append(wxString::Format(_T("entry %d"), i));
|
||||
lbox->Append(wxString::Format(_T("%sentry %d"),
|
||||
i % 10 ? _T("") : _T("very very long "), i));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user