Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: manggae on July 14, 2015, 12:39:09 pm
-
i don't know how to link "wxfiledialog" and "wxlistctrl"....
select the wav file(use wxfiledialog) and add to wxlistctrl..., but i'm beginner about wxwidgets....
please help me...please!!! :oops:
void testdrawFrame::OnButton1Click(wxCommandEvent& event)
{
wxFileDialog* FileDialog1 =new wxFileDialog (this);
wxListCtrl ListCtrl1;
if(FileDialog1->ShowModal() == wxID_OK)
{
wxString strfile = FileDialog1->GetPath();
wxString strname = FileDialog1->GetTitle();
wxListItem itemCol;
itemCol.m_text=strname;
ListCtrl1.InsertItem(itemCol);
}
}
-
Sorry this is not a support forum for the way wxWidgets library is used.
Please ask on their forum or their mailing list.