myCanvas->Clear();
myCanvas->Refresh();
}
- dialog->Close();
+ dialog->Destroy();
}
void MyFrame::ChooseFont(wxCommandEvent& WXUNUSED(event) )
wxGetApp().m_canvasTextColour = retData.GetColour();
myCanvas->Refresh();
}
- dialog->Close();
+ dialog->Destroy();
}
#if defined(__WXMSW__) && wxTEST_GENERIC_DIALOGS_IN_MSW
myCanvas->Clear();
myCanvas->Refresh();
}
- dialog->Close();
+ dialog->Destroy();
}
void MyFrame::ChooseFontGeneric(wxCommandEvent& WXUNUSED(event) )
wxGetApp().m_canvasTextColour = retData.GetColour();
myCanvas->Refresh();
}
- dialog->Close();
+ dialog->Destroy();
}
#endif
if (dialog.ShowModal() == wxID_OK)
{
- wxMessageDialog dialog2(this, dialog.GetPath(), "Selected path");
+ wxString info;
+ info.Printf("Full file name: %s\n"
+ "Path: %s\n"
+ "Name: %s",
+ dialog.GetPath().c_str(),
+ dialog.GetDirectory().c_str(),
+ dialog.GetFilename().c_str());
+ wxMessageDialog dialog2(this, info, "Selected file");
dialog2.ShowModal();
}
}