Yesid Hernandez wrote: > I tried to do some think like this: > > a2dCanvasCommandProcessor *comm = > m_canvas->GetCanvasDocument()->GetCanvasCommandProcessor(); > a2dCommand_FileSave *comm_save = new a2dCommand_FileSave(); > comm->Submit(comm_save);
This should work, and looking the backtrace i don't understand why not. The a2dCommand_FileSave should i think ask for a filename/path. A simpler way is via a2dCanvasDocument:: bool a2dCanvasDocument::Save(const wxString& filename, a2dIOHandlerStrOut* handler ) const bool a2dCanvasDocument::Load(const wxString& filename, a2dIOHandlerStrIn* handler ) > > On the other hand I want to report that most of the sample using the > docview and canvas module, aren't working in the open function. My > conf, is ubuntu 6.10 and wxWidgets 2.8.3 What i tried sofar works on MSW. I think you should load the right files. Like for docview they are stored with the docview/samples/drawings. For the a2dCanvasDocument they are in samples\editor\samples\common\drawings Confirm if they work from the samples. Klaas ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Wxart2d-users_dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
