Page 1 of 1

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

Posted: Thu Sep 21, 2023 7:43 pm
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