In addition, it should be minimized, if I minimize the PB IDE.
Example:
Code: Select all
OpenWindow(0, 0, 0, 600, 600, "PB-IDE", #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget)
#ToolWindowWidth = 200
Define ToolWindowX = WindowX(0) + WindowWidth(0) - #ToolWindowWidth - 20
Define ToolWindowY = WindowY(0) + 50
OpenWindow(1, ToolWindowX, ToolWindowY, #ToolWindowWidth, 400, "ToolWindow_Form", #PB_Window_SystemMenu | #PB_Window_Tool, WindowID(0))
Repeat
Event = WaitWindowEvent()
Until event = #PB_Event_CloseWindow