Windows: opening a .pb file from Explorer when the IDE is already open doesn't make it take foreground focus

Post bugs related to the IDE here
Quin
Addict
Addict
Posts: 1125
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Windows: opening a .pb file from Explorer when the IDE is already open doesn't make it take foreground focus

Post by Quin »

Steps to reproduce:
1. Open PB.
2. Make sure the "Run only one instance" box is checked.
3. Navigate your file manager of choice to a folder where you have a .pb file.
4. Press enter on it.
The IDE opens the file, but it doesn't take foreground focus, like is common behavior with text and code editors. Do this same test with, for example, notepad++, you'll see what I'm after.
The current behavior is woefully inconvenient for screen reader users, and I imagine to a lesser extent sighted users as well.
It would be great if this could be looked into.
Thanks!
Gérard
User
User
Posts: 48
Joined: Sat Oct 17, 2015 6:00 pm
Location: France
Contact:

Re: Windows: opening a .pb file from Explorer when the IDE is already open doesn't make it take foreground focus

Post by Gérard »

Hi,

Try unchecking Memorize Windows positions in General preferences

Gérard
■ Win10 64-bit (Intel Celeron CPU N2920 @ 1.86GHz, 4,0GB RAM, Intel HD Graphics) & PB 6.00 LTS
■ Vivre et laisser vivre.
■ PureBasic pour le fun
■ cage sur le forum Français
■ Mes sites: http://pbcage.free.fr - http://yh.toolbox.free.fr
nsstudios
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

Re: Windows: opening a .pb file from Explorer when the IDE is already open doesn't make it take foreground focus

Post by nsstudios »

I can reproduce it.
Gérard wrote: Wed Sep 06, 2023 10:22 pm Try unchecking Memorize Windows positions in General preferences
The file still opens in the background even with that setting unchecked here, i.e., I still have to alt+tab into the IDE after pressing enter on the .pb file in Explorer.
PB6.03 b5 x64, Win10.
Gérard
User
User
Posts: 48
Joined: Sat Oct 17, 2015 6:00 pm
Location: France
Contact:

Re: Windows: opening a .pb file from Explorer when the IDE is already open doesn't make it take foreground focus

Post by Gérard »

It works for me in version 6.00 LTS, or I don't understand your problem.
If I launch PB and select a pb file in explorer, it opens in the IDE and the tab has focus.
If the IDE is not in the foreground, then it comes to the foreground as desired.
If I minimize the IDE to the taskbar before opening a pb file, the IDE comes to the front with the tab open and with focus.
I tried with several files and it's still good.

Maybe a problem with your version of PB (PB6.03 b5 x64, Win10.)
Gérard
■ Win10 64-bit (Intel Celeron CPU N2920 @ 1.86GHz, 4,0GB RAM, Intel HD Graphics) & PB 6.00 LTS
■ Vivre et laisser vivre.
■ PureBasic pour le fun
■ cage sur le forum Français
■ Mes sites: http://pbcage.free.fr - http://yh.toolbox.free.fr
GoodNPlenty
Enthusiast
Enthusiast
Posts: 112
Joined: Wed May 13, 2009 8:38 am
Location: Arizona, USA

Re: Windows: opening a .pb file from Explorer when the IDE is already open doesn't make it take foreground focus

Post by GoodNPlenty »

Issue confirmed using 6.03 beta 5. My steps to reproduce this issue listed below.

1. Open PB IDE Preferences Memorize Window positions -> Unchecked
2. If setting changed click Apply, click OK then exit IDE.
3. Open explorer and double click on .pb file -> PureBasic IDE Window opens in front.
4. Click on Explorer icon in Taskbar -> Explorer Window to front.
5. Double click on .pb file -> PureBasic Window in back with PB taskbar icon flashing.
Quin
Addict
Addict
Posts: 1125
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Windows: opening a .pb file from Explorer when the IDE is already open doesn't make it take foreground focus

Post by Quin »

On both 6.00 and 6.02, unchecking that didn't do it for me, either.
GoodNPlenty wrote: Thu Sep 07, 2023 5:29 pm Issue confirmed using 6.03 beta 5. My steps to reproduce this issue listed below.

1. Open PB IDE Preferences Memorize Window positions -> Unchecked
2. If setting changed click Apply, click OK then exit IDE.
3. Open explorer and double click on .pb file -> PureBasic IDE Window opens in front.
4. Click on Explorer icon in Taskbar -> Explorer Window to front.
5. Double click on .pb file -> PureBasic Window in back with PB taskbar icon flashing.
Yup, this is what happens for me, too.
Post Reply