The IDE does not get the focus after CloseProgram if Varlist was open.

Post bugs related to the IDE here
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 693
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

The IDE does not get the focus after CloseProgram if Varlist was open.

Post by Kurzer »

PB 6.02 LTS x64

Case A)
1. start the code shown below with F5
2. close the program by closing the window with a mouse click.

Result: The PB IDE gets the focus back and you can immediately navigate in the source code with the cursor keys.

Case B)
1. start the code shown below with F5
2. open the variable viewer (menu debugger/variable list)
3. close the variable viewer by closing the window with a mouse click
4. close the program by closing the window with a mouse click

Result: The PB IDE does NOT get the focus and you have first to click in the PB window with the mouse to be able to navigate in the source code with the cursor keys.

Code: Select all

If OpenWindow(0, 800, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)

  Repeat
  Until WaitWindowEvent() = #PB_Event_CloseWindow
  
EndIf
PB 6.12 x64, OS: Win 11 24H2 x64, Desktopscaling: 150%, CPU: I7 12700 H, RAM: 32 GB, GPU: Intel(R) Iris(R) Xe Graphics | NVIDIA GeForce RTX 3070, User age in 2025: 57y
"Happiness is a pet." | "Never run a changing system!"