Bonjour Thierry
Today closing a child form other than Thisform.Release (), does not return in the callback () method of the calling object. Is there a structural reason that prohibits when closing a child form by its QueryUnload () method or its native close () button, that a 'callback' is executed in the calling form without in the QueryUnload() method use a THISFORM.wMessageBox('Queryunloadcallback',....)?
Amicalement Gilles
Hi Gilles,
I think we have a bug here: if .queryUnload()
returns .T.
without invoking .queryUnloadCallback
, the form does not close as it should.
Nota: in desktop mode, the form closes unless you code nodefault
anywhere in the .queryUnload()
method. In any case, you also need to call dodefault()
Please try this fix:
modify command awServer.prg && line 14,221
&& replace
= .T.;
and m.tcMethod == Proper('QueryUnloadCallback');
and lTrue(m.luResult);
and this.cScriptJSAdd_(m.toForm.wcFormCloseScript(,, .T.));
and .T.
&& by
= .T.;
and (m.tcMethod == Proper('QueryUnload') or m.tcMethod == Proper('QueryUnloadCallback'));
and lTrue(m.luResult);
and this.cScriptJSAdd_(m.toForm.wcFormCloseScript(,, .T.));
and .T.
Merci Thierry,
I will try to use this patch netx week..
Amicalement