simonsteele / pn

Programmer's Notepad
372 stars 115 forks source link

PN Disappears #212

Open wblight2023 opened 1 year ago

wblight2023 commented 1 year ago

I use the windows key with the left and right arrows to snap the screen to have the monitor. I move PN from the right screen to the 3rd screen on the left. It disappears when it hits the center screen. It appears on the task bar, and as one of the tiles when doing ALT-TAB but the actual program never appears again. I have to close it and open it again.

I am a programmer, I have 3 monitors and typically have multiple programs running. I can reproduce the problem doing the following:

  1. On PC startup spotify is running.
  2. I start Embarcadero Delphi IDE and it runs in the center monitor.
  3. I start PN, it appears on the right monitor.
  4. I use the windows + left arrow to move it to the left screen
  5. It resizes and moves across the monitor as I hit the left arrow.
  6. It looks like it disappears behind the Delphi IDE but never re-appears.
  7. I have to close it and start it again.

It doesn't seem to do this if Delphi is not running. Will Blight Software Engineer.

veganaize commented 1 year ago

So if you minimize/close the Delphi IDE then the (center monitor's) desktop is effectively empty; Programmer's Notepad isn't visible?

You might try [ALT]+[TAB]ing to PN when it's hidden, to gain focus, and then press [ALT]+[SPACE] followed by X to attempt to maximize the (hidden) window.

wblight2023 commented 1 year ago

Yesterday I couldn’t replicate the problem. If I had the tools I would create a video showing the problem.

So if you minimize/close the Delphi IDE then the (center monitor's) desktop is effectively empty; Programmer's Notepad isn't visible?

Yes, that is correct. If I keep moving PN using the WIN+Arrow it still doesn’t appear.

You might try [ALT]+[TAB]ing to PN when it's hidden, to gain focus, and then press [ALT]+[SPACE] followed by X to attempt to maximize the (hidden) window.

This works. When I press ALT + Space the sizing menu pops up with nothing else around it. The menu appears where the PN should be. I select maximize and the window appears.

After the PN appears again I can open and close it and the problem doesn’t seem to occur again. Or I am not following the sequence of events that causes the problem.

Will Blight

R&D Software Engineer

ABM Sensor Technology, Inc.

730 The Kingsway

Peterborough, ON K9J 6W6

Web: www.abmsensor.com

Office: 705-740-2010

From: veganaiZe @.*** Sent: January 6, 2023 5:56 PM To: simonsteele/pn Cc: wblight2023; Author Subject: Re: [simonsteele/pn] PN Disappears (Issue #212)

So if you minimize/close the Delphi IDE then the (center monitor's) desktop is effectively empty; Programmer's Notepad isn't visible?

You might try [ALT]+[TAB]ing to PN when it's hidden, to gain focus, and then press [ALT]+[SPACE] followed by X to attempt to maximize the (hidden) window.

— Reply to this email directly, view it on GitHub https://github.com/simonsteele/pn/issues/212#issuecomment-1374232373 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A5DSBF33SF6PRE26PKFK3WLWRCPIFANCNFSM6AAAAAATTDLEBM . You are receiving this because you authored the thread.https://github.com/notifications/beacon/A5DSBFZ3XJ6C7RN64KP7FWTWRCPIFA5CNFSM6AAAAAATTDLEBOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSR5EPTK.gifMessage ID: @.***>

veganaize commented 1 year ago

Microsoft Windows has some weird quirks with the way it remembers window sizes & positions; with multiple monitors/desktops the issue can compound. The general rule of thumb is to try to make sure the window seems like it's in a reasonable state before closing it -- which affects the way the window is displayed, the next time it's opened.

That being said, based on my personal experience, there will likely still be issues, at least from time to time, regardless of how much effort you put into properly grooming the window layout, of running programs, before terminating them.

On a related note, you should be able to simply press [LOGO]+[UP] to instantly maximize the hidden window (without the whole alt+space song & dance) if you run into the same problem, down the road.

wblight2023 commented 1 year ago

I typically use keyboard short cuts for everything and so far only PN disappeared. From my own programming experience I know that I don’t write any special code to handle these window movement events. So I figured it might be a Windows problem.

In the past I did try the [LOGO]+[UP] when PN disappeared and it didn’t work. It may have maximized the screen but it didn’t make it visible again. Selecting PN from ALT TAB, produces a ghost like flicker that comes through the left screen to the center screen but nothing appears. From this I thought maybe PN was minimized and tried to maximize it. I will try it again. The problem doesn’t occur every day. I have not discovered the sequence of events that produces the problem.

Thank you for the quick reply and help. I was trying to remember the alt+space shortcut to bring up the size menu. Sometimes I had multiple unsaved tabs in PN when it disappeared and I ended up closing the program and losing the information.

Will Blight

R&D Software Engineer

ABM Sensor Technology, Inc.

730 The Kingsway

Peterborough, ON K9J 6W6

Web: www.abmsensor.com

Office: 705-740-2010

From: veganaiZe @.*** Sent: January 10, 2023 5:22 PM To: simonsteele/pn Cc: wblight2023; Author Subject: Re: [simonsteele/pn] PN Disappears (Issue #212)

Microsoft Windows has some weird quirks with the way it remembers window sizes & positions; with multiple monitors/desktops the issue can compound. The general rule of thumb is to try to make sure the window seems like it's in a reasonable state before closing it -- which affects the way the window is displayed, the next time it's opened.

That being said, based on my personal experience, there will likely still be issues, at least from time to time, regardless of how much effort you put into properly grooming the window layout, of running programs, before terminating them.

On a related note, you should be able to simply press [LOGO]+[UP] to instantly maximize the hidden window (without the whole alt+space song & dance) if you run into the same problem, down the road.

— Reply to this email directly, view it on GitHub https://github.com/simonsteele/pn/issues/212#issuecomment-1377972447 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A5DSBF3MS2YP3PRUMSC3YKLWRXOJTANCNFSM6AAAAAATTDLEBM . You are receiving this because you authored the thread. https://github.com/notifications/beacon/A5DSBFYZPDJARGCGYE6WZJ3WRXOJTA5CNFSM6AAAAAATTDLEBOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSSEIYN6.gif Message ID: @.***>