PART 1: C++ GUI - Drawing, Copying in the clipboard and Saving image with wxWidgets and CodeBlocks
https://www.youtube.com/watch?v=42jJDAfFVfI
and the original code is at https://drive.google.com/file/d/0B1Jtvy ... djS3c/view
My code is running but not loading the file, nor displaying either.... researching into the matter and found something about GetPath() no getting the path correctly, in a Linux sys.
Code: Select all
void wxWidget_2_utubeFrame::OnLoadClick(wxCommandEvent& event)
{
// //manually added
int dlg=FileDialog1->ShowModal(); //manually added
if(dlg==wxID_OK) //manually added
{
my_bitmap.LoadFile(FileDialog1->GetPath(),wxBITMAP_TYPE_ANY); //manually added
my_wxclientdc->DrawBitmap(my_bitmap,0,0,false); //manually added
//os.path.dirname(file_dialog.GetPath()) this was a solution recommended and did not work.
}
}