I'm using PB 6.5 and when I open 2 windows over each other. How do I maximize the one window when I close the other one with code. Does anyone know as I can't find anything in PB help. Thanx
Thanx for the info, however windowstate only specify the initial state of the window in the script that opens the window. When the window is already open this command doesn't seem to do anything.
Let's put it this way, I have a windows opened maximized inside a frame window, I click a button on this window which opens another window also maximized inside the frame window over the original window, but I don't close the original window. When I close the newly opened window the original window seems to be layered and not maximized anymore, and seeing as I disabled the maximize button on the window the user can't do it manually. I tried setting windowstate in the activate event of the original window, but that doesn't seem to do anything, the original window stays layered and not maximized every time I close the 2nd window. I'm completely lost on this one, and any additional help will be greatly appreciated. Thanx in advance. Cheers
few solutions [without actually reading ur post fully ]
1. what is the window state of your second window? [ie Popup / Response / .....] Try playing with it.
2. in the pfc_postopen event of the parent window
ii_max_width = this.width
ii_max_height = this.height
write a event ue_resize with code:
resize(ii_max_width,ii_max_height)
and in the closequery event of the second window call first_window.dynamic ue_resize()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.