Hi
I want to verify my understanding of the resizing behavior. I'm reverse engineering some code that is using the resize service.
I'm opening a window inside a MDI. the window has a number of controls, one if which is registered with scalebottom; the rest are registered with fixedbottom.
When I open the window and resize the app, the scalebottom control grows and shrinks correctly, and the rest move with the bottom correctly. The problem is, when I first open the window, the height of the scalebottom control is much shorter than I want it to be, and much shorter than it looks in the painter in PowerBuilder.
After playing around, what I *think* is happening is that the resize service determines the delta Y between the bottom of the scalebottom control and the bottom of the window in the painter. Let's say that is 1000.
Then when the window is opened in the MDI, the resize code first attempts to keep the delta Y the same (1000); resizing the control as needed to make that happen. It just so happens that the height of the app (before I grow it) is shorter than the window in the painter. Therefore the scalebottom control has to shrink to keep the delta at 1000.
Is this how it works?
I realize I may not have explained this well enough, so please ask me any questions you need.