SimpleIDE Version 0.9.28 has problem with modal dialog "Save File?"
Dougworld
Posts: 24
Steps to reproduce:
1. modify the example program -- for example, add a simple comment line
2. click the X button in the upper-right corner
3. Modal dialog box "Save File?" appears
4. Options are Save / Save All / Discard
5. But that's not the only option! The other option is that I hit the X by mistake and I just want to dismiss the modal dialog box.
6. The program should respond to the X button in the modal dialog box, thus allowing me to exit this dialog box without losing the changes I made to the source code.
Thanks.
1. modify the example program -- for example, add a simple comment line
2. click the X button in the upper-right corner
3. Modal dialog box "Save File?" appears
4. Options are Save / Save All / Discard
5. But that's not the only option! The other option is that I hit the X by mistake and I just want to dismiss the modal dialog box.
6. The program should respond to the X button in the modal dialog box, thus allowing me to exit this dialog box without losing the changes I made to the source code.
Thanks.
Comments
In step 2 do you mean the X to close the program?
In steps 5 and 6 you mention X in the dialog. It does seem odd that the X is disabled, but it doesn't seem like a big problem - maybe I misunderstand the point. The X would have the same meaning as Discard if it was enabled. Other dialogs use Canel and X interchangeably.
The cancel option would follow with the convention I am familiar with on many (most?) apps. I can't think of an app that doesn't work like this if it has documents that are unsaved.
Step 2 = the upper-rightmost X, meaning quit the program
Step 5 and 6. What do you mean that it doesn't seem like a big problem? Shall I only report those problems that you consider big? Standard behavior for a modal dialog box includes dismissing the modal dialog box without further action, which can't be done in this software. The point of beta software feedback is to find problems that make the software hard or impossible to use. In this case, I'm reporting a non-standard behavior, and everyone who has used a modal dialog box will agree that standard behavior is preferable to arbitrary behavior. I don't want to Save or Save All or Discard -- I want to stop the modal dialog box and continue what I was doing before I clicked the X. All modal dialog boxes that I've encountered to date act a certain way, and this one doesn't. Thanks.
You should definitely write a bug report on this. You can report it at: https://code.google.com/p/propside/issues/list
I do agree that a Cancel option that returns the user to the IDE without saving is warranted in this scenario.
BTW: I noticed that in Mac OS X, that the Close button in the Save dialog appears enabled, though clicking it does nothing.
dgately
This is a tough crowd, so I wouldn't expect anyone to meet all of its expectations ... SimpleIDE is a great boon to getting folks writing C code for Propeller!
Your work in developing SimpleIDE is greatly appreciated by me and I'm sure many others.
dgately
option of choosing the lesser of two evils.
The modal dialogs I have seen always do a cancel not close the application.
The best approach in UI design however is to not give the user the option of
clicking on and executing a command if the state of the application is such
that it makes no sense such as save a file if we do not have one open yet.
Disable and gray out the save command until a file is open.
Far better than trying to think of if else if else etc code of how to handle what
the app does if a user executes some command you do not want executed now.
The solution here could be to not even have the "X" system icon in the upper right
corner to be clicked on but then there should be a cancel button to choose as well
as the normal options.
This is possible in Delphi which I use as you can choose which icons or none to have
up in the corner when creating a dialog form.
However Steve with SimpleIDE might not have that option as he has to satisfy many
masters with the requirement of it working with Windows, Mac etc . With each platform
having it's own UI requirements and style.
Tom