Author Topic: I don't know how to link "wxfiledialog" and "wxlistctrl"  (Read 2245 times)

manggae

  • Guest
I don't know how to link "wxfiledialog" and "wxlistctrl"
« 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);
   }
}

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I don't know how to link "wxfiledialog" and "wxlistctrl"
« Reply #1 on: July 14, 2015, 01:07:01 pm »
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!]