Re: Floating supertables in Win95 windows
Posted in 1998
Kathy wrote: > We have some windows in out application that are small and don't take > up the whole screen. Our problem is that sometimes the user wants to > maximize the window. When they do, the super table stays anchored in > the top corner and it looks bad. > > Is there anyway in New Era 2.2 to recognize when the window is normal > or maximized and adjust the ST anchor points accordingly? > I'm pretty sure that maximizing the window will post a ixWindow::resize() event, so you can write a handler to reset your anchor accordingly. I'm also pretty sure that minimizing the window posts resize, as does any resizing. So you should probably test for a minimal size before resetting anchor (you can also trap the user from minmizing or resizing the window below a minimum height this way). Setting anchor isn't bad; I was trying to figure out a way to actually resize and change the number of rows displayed in a Grid Form SuperTable based on window resize, but decided it was a can of worms best left unopened (just don't mention it to your users, or it will become a required feature). //////////////// ======================================================= ////////// // Dennis J. Pimple Informix Software, Inc. ////// / /// Principal Consultant 6300 S Syracuse Way Ste 205 ///// // //// dennisp@informix.com Englewood CO 80111 //// // ///// /// // ////// recept: 303-850-0210 // // /////// direct: 303-740-5611 Opinions expressed are mine, / /////////// fax: 303-779-4025 and do not necessarily //////////////// http://www.informix.com reflect those of my employer