| 837 | } |
| 838 | |
| 839 | wxListCtrl * ShuttleGuiBase::AddListControl( |
| 840 | std::initializer_list<const ListControlColumn> columns, |
| 841 | long listControlStyles |
| 842 | ) |
| 843 | { |
| 844 | UseUpId(); |
| 845 | if( mShuttleMode != eIsCreating ) |
| 846 | return wxDynamicCast(wxWindow::FindWindowById( miId, mpDlg), wxListCtrl); |
| 847 | wxListCtrl * pListCtrl; |
| 848 | SetProportions( 1 ); |
| 849 | mpWind = pListCtrl = safenew wxListCtrl(GetParent(), miId, |
| 850 | wxDefaultPosition, wxDefaultSize, GetStyle( wxLC_ICON )); |
| 851 | pListCtrl->SetMinSize( wxSize( 120,150 )); |
| 852 | UpdateSizers(); |
| 853 | |
| 854 | DoInsertListColumns( pListCtrl, listControlStyles, columns ); |
| 855 | |
| 856 | return pListCtrl; |
| 857 | } |
| 858 | |
| 859 | wxListCtrl * ShuttleGuiBase::AddListControlReportMode( |
| 860 | std::initializer_list<const ListControlColumn> columns, |
no test coverage detected