Doc/view: how to notify open/save failure?
Biozic
bioziccc at free.fr
Mon Nov 19 04:52:15 PST 2007
Klaas Holwerda a écrit :
> Biozic wrote:
>>
>> Hi,
>>
>> I am trying to use the document/view framework. I have overridden
>> wxDocument::LoadObject to parse my data files. I am now told (by the
>> documentation) that wxDocument::OnOpenDocument calls
>> wxDocument::LoadObject and that if LoadObject does not return true,
>> an error message box is displayed.
>
>
> Set a flag m_parsedWell in MYwxDocument::LoadObject
>
> and test it in:
>
> virtual bool MYwxDocument::DoOpenDocument(const wxString& file);
>
> I think this last functions was added some time ago, to solve your
> problem.
>
> Klaas
That's another good idea, thanks a lot.
Nicolas
More information about the wx-users
mailing list