Page 1 of 1

SaveCopyAs

Posted: Tue Nov 14, 2017 5:49 pm
by jeffp
Is there anyway to control the file name that gets used with the SaveCopyAs command.

I have a user that doesn't want the text "Copy" appended to the original name.

Is this possible?

--Jeff

Re: SaveCopyAs

Posted: Wed Nov 15, 2017 8:00 am
by Sasha - Tracker Dev Team
Hello Jeff,

Well you can make the SaveAsCopy command to behave like the SaveAs command if that would work for you. Basically you can replace the command handler and that should work.

Cheers,
Alex

Re: SaveCopyAs

Posted: Wed Nov 15, 2017 2:17 pm
by jeffp
It needs to be SaveCopyAs not SaveAs. The former does not change anything about the loaded document. SaveAs does.

Re: SaveCopyAs

Posted: Wed Nov 15, 2017 2:45 pm
by Sasha - Tracker Dev Team
Well that text can only be changed when that dialog closes. Meaning that the user will save that as _Copy but the file name can be modified afterwards.

Cheers,
Alex

Re: SaveCopyAs

Posted: Wed Nov 15, 2017 2:49 pm
by jeffp
Ok. Thanks. I'll just display my own save as dialog and handle it from there.

Re: SaveCopyAs

Posted: Wed Nov 15, 2017 2:59 pm
by Sasha - Tracker Dev Team
:)