Today I corrected the implementation of the titles of the documents created or loaded.
When the new document is created the file get the name of “Document i” where i could be 1,2,3…. and so on.
And when a file is opened, its saved name is displayed as the title.
I’ve also corrected the Cancel button bug, i.e even if the user clicks cancel on any file dialog the rest of the function was still getting executed. So implemented an exception to that.
While writing this post I’ve got another idea to further improve the issue I solved today. Going to work on that as well.