We have OnBoundsChange but really, we also need OnBoundsChanging…
The reason is currently I can not resize a form or control to override some issues without severe flickering and redraws …
Currently I override the WinProc and process the WM_WINDOWPOSCHANGING where
by I can adjust size of the form to a desire aspect ratio if for example a user is dragging a corner etc.. This is needed to maintain aspect ratios for images and things like it and it works.!
With the capture of this message I can remap the sizes before it actually gets sent to the LCL code. From there proper image drawing is done with no flickering..
so currently if I use the Mouse to scroll the window smaller or larger I need to adjust the ratio and thus for that part I've been adjusting the boundsRect and it causes flicker because apparently due to how its processed in the LCL
So For that, I resorted to using SetWindowPos instead which also seems to work without flicker because it sends the desired message first WM_WINDOWPOSCHANGING
We need to clean up the LCL a bit and make it a little more productive.
Is it possible to get a Real OnBoundsChanging event with a VAR ABounds:TRect so it can be changed, this coming directly from the Win32 widget without the LCL doing funny things to is while working with it ?
This should be a Cross platform feature, which is why I am asking here about it..