Dealing with closing a document w/closebox

Edwin Gore edgore at shinra.com
Fri Apr 4 16:50:00 EST 2003


I'm trying to implement standard document handling in an application that I am working on, and I have everything working except for one thing...

If there have been changes to the docuemtn stack and the user closes the document stack by clicking on the closebox I can't find any way of trapping that before revolution brings up the standard.

I have already tried renaming the new docuemnt stack to untitled.cdd (the desired extension) hoping that rev would pick up on the existing extension, but it just tries to save the file as untitled.cdd.rev, which is not right.

So - how to I make sure that the user never sees the Rev default save routine, but is always sent to my save routine that works right?



More information about the use-livecode mailing list