News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

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

Started by manggae, July 14, 2015, 12:39:09 PM

Previous topic - Next topic

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]