Page 1 of 1

Interrupt Saving

Posted: Tue Dec 13, 2016 4:55 pm
by barnacle
Hi there,

I am having a case where I would like to ask the user whether or not he really wants to save the project and give the possibility to cancle the saving process. I tried using the function SaveGIDProject but it seems that I can't interrupt the saving process from here. Is there another way to prompt a question to the user in case he saves the project and interrupt the saving when he presses cancel?

Greetings

Re: Interrupt Saving

Posted: Thu Dec 15, 2016 7:17 pm
by escolano
This GiD-event doesn't exists nowadays.
We could add it for next developer version 13.1.3d, something like this:

Code: Select all

proc GiD_Event_BeforeSaveGIDProject { } {
  ... body ...
   set value ...

  return $value
}
and if it returns -cancel- then saving will be interrupted

Re: Interrupt Saving

Posted: Fri Dec 16, 2016 12:15 pm
by barnacle
That would be quite useful I think!