Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximize a window after open?

Status
Not open for further replies.

Tentacle

Programmer
Nov 10, 2000
34
ZA
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

Tentacle
 
w_window_to_maximize.windowstate = maximized!

--
regards,
Simon
 
Hi Simon

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

Jeandre a.k.a Tentacle
 
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()


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top