I have a main file with the main Window and some other Windows. I call a pbi file including another window. Every window, exept the main one, has parent, WindowID(#MainWindow). For the windows in the same pb file with the main window everything is fine. When I show a second window, I cannot access the main window. But the window from the pbi file is not acting the same. When that window is present, I can use the main window. I shouldn't be able to do it. What is wrong? Main window has flags:
Code: Select all
#PB_Window_MinimizeGadget | #PB_Window_ScreenCentered
All others in main file:
Code: Select all
#PB_Window_SystemMenu | #PB_Window_WindowCentered, WindowID(#MainWindow)
in pbi
Code: Select all
#PB_Window_SystemMenu | #PB_Window_WindowCentered, WindowID(Window))
Window, #MainWindow, is passed as parameter in the procedure call, for example:
Code: Select all
Procedure.s InputRequesterEx(title$, text$, width.i=330, height.i=115, Window.i = 0, returnLen.i = 0, isPassword.a = 0)
I have checked that #MainWindow is passed correctly and WindowID returns the same number in every case. Also, enumeration in pbi starts from $AAA, in main window from zero.