MCPcopy Create free account
hub / github.com/audacity/audacity / AddListBox

Method AddListBox

libraries/lib-shuttlegui/ShuttleGui.cpp:810–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810wxListBox * ShuttleGuiBase::AddListBox(const wxArrayStringEx &choices)
811{
812 UseUpId();
813 if( mShuttleMode != eIsCreating )
814 return wxDynamicCast(wxWindow::FindWindowById( miId, mpDlg), wxListBox);
815 wxListBox * pListBox;
816 SetProportions( 1 );
817 mpWind = pListBox = safenew wxListBox(GetParent(), miId,
818 wxDefaultPosition, wxDefaultSize, choices, GetStyle(0));
819 pListBox->SetMinSize( wxSize( 120,150 ));
820 UpdateSizers();
821 return pListBox;
822}
823
824
825wxGrid * ShuttleGuiBase::AddGrid()

Callers 3

PopulateOrExchangeMethod · 0.80
EffectPresetsDialogMethod · 0.80
ImportStreamDialogMethod · 0.80

Calls 4

GetParentFunction · 0.85
GetStyleFunction · 0.85
wxListBoxClass · 0.70
wxSizeClass · 0.50

Tested by

no test coverage detected