Budi Irawan wrote: > By the way, many thanks for your help to modify tutoagg samples. I have > learnt a lot from your modified codes. I know where my mistakes are. I > fixed mine and "New" and "Open" works great but for "Save" and "Save as" > the application crashed. I'm still trying to find the mistake. > >
Add something like this in bool MyApp::OnInit(), i think it will work after that a2dDocviewGlobals->GetVariablesHash().SetVariableString( wxT("maskproclayers"), wxT("maskproclayers.cvg") ); a2dDocviewGlobals->GetVariablesHash().SetVariableString( wxT("layerFileSavePath"), wxT("C:/tmp") ); Used in: void a2dPatternFill::DoSave( wxObject* parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts , a2dObjectList* towrite ) The pattern files for the pattern fill need to be saved in a location, and this is a way to decide where to save them. KLaas -- Unclassified ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev