User forums > Using Code::Blocks

I don't know how to link "wxfiledialog" and "wxlistctrl"

(1/1)

manggae:
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);
   }
}

oBFusCATed:
Sorry this is not a support forum for the way wxWidgets library is used.
Please ask on their forum or their mailing list.

Navigation

[0] Message Index

Go to full version