- frame = wxContourMainFrame::getInstance(parent, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages );
- bbSetOutputWidget( frame );
+
+ char currentPath[_MAX_PATH];
+ HMODULE hand = GetModuleHandle("bbcreaContours");
+ GetModuleFileName(hand, currentPath, _MAX_PATH);
+
+ std::string path = currentPath;
+
+ path = path.substr(0,path.find_last_of("\\"));
+
+ wxPanel* panel = wxContourMainFrame::getInstance(parent, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages,wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER,path );
+ bbSetOutputWidget( panel );