mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   Software closed when pressing the X button on the top right corner (https://www.mersenneforum.org/showthread.php?t=25642)

ny1050220 2020-06-17 21:29

Software closed when pressing the X button on the top right corner
 
Using p95v298b6.win64. Maybe I used an older version... but the pain is that if I click the X button on the top right corner, the program closes.
You might say, that's how programs in Windows work.
But no, the previous version I had didn't close. It ran in the background.
Anybody has any idea why this happens?

Uncwilly 2020-06-17 21:41

Make sure that you have the "Tray Icon" checked under options. Some versions of Windows task manager don't show Prime95 where you might expect.

It may be that it is running, but just hidden.

kriesel 2020-06-18 03:09

[QUOTE=ny1050220;548308]Using p95v298b6.win64. Maybe I used an older version... but the pain is that if I click the X button on the top right corner, the program closes.
You might say, that's how programs in Windows work.
But no, the previous version I had didn't close. It ran in the background.
Anybody has any idea why this happens?[/QUOTE]Hi and welcome What you describe is not just how programs in Windows work. It's how they are required to work. There's a consistent user interface spec that goes back to Windows 3 (30 years ago), probably earlier, that requires certain elements be present and act a certain way to be marketable as Windows programs. Some elements have been around for years or decades, through multiple Windows major releases and that's one of them, as far as I know.
Upper-right X is close program; it gets followed typically with some sort of confirmation if some data have not yet been saved. - (minimize) sends prime95 to the system tray if tray icon is enabled in prime95; to the taskbar otherwise.
Hover the mouse cursor over - and the tooltip saying minimize will appear; over the X and the tooltip says close. Close means terminate, end program. Just trying to be really clear here; we get people from all over the world here, and so does NY.

Prime95 2020-06-18 05:05

Look in undoc.txt for options

ny1050220 2020-06-18 12:53

[QUOTE=Prime95;548337]Look in undoc.txt for options[/QUOTE]


Thank you so much for pointing that out!



And for those who had the same trouble as I did, here is the solution:
In undoc.txt, it reads

"When Tray Icon or No Icon is selected the "X" at the right of
the title bar will minimize rather than exit. You can make the program exit
if you prefer. In prime.txt set:
ExitOnX=1"


In prime.txt, "ExitOnX=" may not be present. If so, just add it to the end of the first chunk of parameters. I added it before [PrimeNet].

ny1050220 2020-06-18 12:57

[QUOTE=Uncwilly;548311]Make sure that you have the "Tray Icon" checked under options. Some versions of Windows task manager don't show Prime95 where you might expect.

It may be that it is running, but just hidden.[/QUOTE]


Thanks for suggestion!

I wanted to get the feature that it didn't exit but minimize on X because I didn't want the tray icon. To me it is distracting. So I only want to check on it when I think of it, otherwise it'll keep working in the background.
And it was not hidden and running; this was confirmed by the progress and the status update when I reopened the program.
Anyway, the user Prime95 has pointed the right way. You might try it out if interested.

ny1050220 2020-06-18 13:19

[QUOTE=kriesel;548330]Hi and welcome What you describe is not just how programs in Windows work. It's how they are required to work. There's a consistent user interface spec that goes back to Windows 3 (30 years ago), probably earlier, that requires certain elements be present and act a certain way to be marketable as Windows programs. Some elements have been around for years or decades, through multiple Windows major releases and that's one of them, as far as I know.
Upper-right X is close program; it gets followed typically with some sort of confirmation if some data have not yet been saved. - (minimize) sends prime95 to the system tray if tray icon is enabled in prime95; to the taskbar otherwise.
Hover the mouse cursor over - and the tooltip saying minimize will appear; over the X and the tooltip says close. Close means terminate, end program. Just trying to be really clear here; we get people from all over the world here, and so does NY.[/QUOTE]


Clearly, there are features of this very program that you are not familiar with. I tried to be clear that some people might think ALL programs close on X just because Windows says X means close, which is not the case.

Obviously, I'm not an expert on this program. But you were hinting that I didn't have any basic knowledge on how to operate in Windows. I don't think that is a very kind assumption.

retina 2020-06-18 13:24

[QUOTE=ny1050220;548384]Clearly, there are features of this very program that you are not familiar with. I tried to be clear that some people might think ALL programs close on X just because Windows says X means close, which is not the case.[/QUOTE]Yes, you are correct. There is no requirement for programs to close when X is pressed. Programs can choose to ignore it, or choose to honour it, or play a tune and send your CC numbers to hackers. It is completely under the control of the each program.

a1call 2020-06-18 13:26

[QUOTE=ny1050220;548383]

Anyway, the user Prime95 has pointed the right way. You might try it out if interested.[/QUOTE]
Being from all over the word makes it reel difficult for dinner off is to figure out the mechanics of how that user could possibly know the answer.:smile:
Welcome to the forum. Prume95 is the programmer.:smile:

ny1050220 2020-06-18 15:01

Ah thanks, a1call!
I was wondering why prime95 has such a user id! Now that explains! I guess I meant the forum user. Either way, thanks to both!

kriesel 2020-06-18 16:16

[QUOTE=ny1050220;548384]Clearly, there are features of this very program that you are not familiar with. I tried to be clear that some people might think ALL programs close on X just because Windows says X means close, which is not the case.

Obviously, I'm not an expert on this program. But you were hinting that I didn't have any basic knowledge on how to operate in Windows. I don't think that is a very kind assumption.[/QUOTE]Sorry I hit a nerve there. It does seem quite possible or even probable to me that someone can be proficient in using an environment without necessarily being aware of the history of standards required by Microsoft historically. I know of the consistent user interface because I began creating Windows GUI applications long ago and bought a reference book about that. Please don't mistake informing someone of something for thinking or calling them ignorant or worse. Communicating and perceiving the right tone is a common issue online and here is not an exception. Assuming good will on both ends helps generally. Informing was the intent.

Prime95's use of the X to either close or minimize seems to me to be nonstandard. But I haven't kept up on the standards for a long time. I don't see the utility of making the X at the upper right ambiguous when the - two symbols to its left has the minimize function. I know from long familiarity it's unwise to bet against Prime95 though. And the program is both feature rich and well documented; readme.txt, whatsnew.txt, license.txt, undoc.txt. I've read those repeatedly over the decades and there's so much it's easy to forget a lot of it.

Searching a bit online, I easily found this: [URL]https://blog.codinghorror.com/whatever-happened-to-ui-consistency/[/URL] So apparently INconsistent user interface has already become a well established tradition. So now I'm better informed too. Isn't that great? It's part of what I come here for.
Have a good day all.


All times are UTC. The time now is 17:26.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.