Ok I think i have found

        m_layerView->Activate(true);
        //ask the user if he want to save if the document has been modified
        
if(a2dDocviewGlobals->GetDocviewCommandProcessor()->GetCurrentDocument()->SaveModifiedDialog()==wxYES)
        {
            a2dDocviewGlobals->GetDocviewCommandProcessor()->FileSave();
        }
        a2dDocviewGlobals->GetDocviewCommandProcessor()->FileClose ();
        a2dDocviewGlobals->GetDocviewCommandProcessor()->CreateDocuments
(wxT("dummy"),wxDOC_NEW,
        FindDocTemplate("LayerDocument"));

-------------------------------------------------------------------------
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

Reply via email to