Ok but imagine that I whant at least to finish the first setup completely if the user click cancel on enterdisk. When OnCanceling is called in response to CANCEL button of ENTERDISK dialog, even if I don't call ABORT in oncancelling the ENTERDISK dialog is always re-called and son one...it drives me crazy :-)
look at my oncalceling function : I've tryed to bypass "abort" if I came from Enterdisk line....but instead of going on the next line (just after ENTERDISK), ENTEDISK stay active and the next line is never called...
///////////////////////////////////////////////
function OnCanceling()
begin
if (IDYES = SprintfBox(MB_YESNO|MB_ICONEXCLAMATION|MB_DEFBUTTON2,
SdLoadString(SD_STR_ONCANCELING_TITLE),
SdLoadString(SD_STR_ONCANCELING_MSG))) then
EndCurrentDialog();
Enable(USE_LOADED_SKIN);
if(passed_by_enterdisk==TRUE) then
//abort;
else
abort;
endif;
endif;
end;
///////////////////////////////////////////////
Is there a way to jump the line ENTERDISK(...) when user click on CANCEL?
Thank you
Edited by lavocat, 09 March 2005 - 15:48.