Interrupt Saving

Moderator: GiD Team

Post Reply
barnacle
Posts: 12
Joined: Sat Feb 28, 2015 1:51 pm

Interrupt Saving

Post 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
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: Interrupt Saving

Post 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
barnacle
Posts: 12
Joined: Sat Feb 28, 2015 1:51 pm

Re: Interrupt Saving

Post by barnacle »

That would be quite useful I think!
Post Reply