mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2020-06-17, 21:29   #1
ny1050220
 
Mar 2019
Mid-Atlantic

118 Posts
Default 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?
ny1050220 is offline   Reply With Quote
Old 2020-06-17, 21:41   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

101011001110112 Posts
Default

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.
Uncwilly is online now   Reply With Quote
Old 2020-06-18, 03:09   #3
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by ny1050220 View Post
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?
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.

Last fiddled with by kriesel on 2020-06-18 at 03:12
kriesel is offline   Reply With Quote
Old 2020-06-18, 05:05   #4
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17·487 Posts
Default

Look in undoc.txt for options
Prime95 is offline   Reply With Quote
Old 2020-06-18, 12:53   #5
ny1050220
 
Mar 2019
Mid-Atlantic

32 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Look in undoc.txt for options

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 is offline   Reply With Quote
Old 2020-06-18, 12:57   #6
ny1050220
 
Mar 2019
Mid-Atlantic

32 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
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.

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 is offline   Reply With Quote
Old 2020-06-18, 13:19   #7
ny1050220
 
Mar 2019
Mid-Atlantic

916 Posts
Default

Quote:
Originally Posted by kriesel View Post
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.

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.
ny1050220 is offline   Reply With Quote
Old 2020-06-18, 13:24   #8
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

6,793 Posts
Default

Quote:
Originally Posted by ny1050220 View Post
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.
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.
retina is online now   Reply With Quote
Old 2020-06-18, 13:26   #9
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

2·11·109 Posts
Default

Quote:
Originally Posted by ny1050220 View Post

Anyway, the user Prime95 has pointed the right way. You might try it out if interested.
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.
Welcome to the forum. Prume95 is the programmer.
a1call is offline   Reply With Quote
Old 2020-06-18, 15:01   #10
ny1050220
 
Mar 2019
Mid-Atlantic

32 Posts
Default

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!
ny1050220 is offline   Reply With Quote
Old 2020-06-18, 16:16   #11
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by ny1050220 View Post
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.
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: https://blog.codinghorror.com/whatev...i-consistency/ 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.

Last fiddled with by kriesel on 2020-06-18 at 16:29
kriesel is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Developer's corner kriesel kriesel 17 2023-03-16 21:06
Cheesehead's Corner? jasong jasong 6 2013-10-16 20:09
Intel Xeon Phi - Knights Corner BotXXX Hardware 16 2012-06-21 23:54
How to use Test > Continue button Minter Information & Answers 13 2009-11-09 19:17
Peculiar Case of Benjamin Button is AWESOME!!!!!!! jasong jasong 7 2009-01-01 00:50

All times are UTC. The time now is 13:52.


Fri Jul 7 13:52:35 UTC 2023 up 323 days, 11:21, 0 users, load averages: 1.52, 1.31, 1.19

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔