Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jan : Responding to all Resizing events?
| Subject: | Responding to all Resizing events? |
| Posted by: | "Mark Reichert" (ma..@messagelink.com) |
| Date: | Wed, 3 Jan 2007 12:32:06 |
On a Frame, I have a TImage in a TScrollBox. Above it a TPanel with
Radiobuttons controling the shown size of the image. To the left a listbox
with names of images.
Whenever selecting a new image or resizing the image through the
radiobuttons, a procedure of the frame will make the proper adjustments and
the TImage will be repainted, but that's not the question.
The question is how to make sure the procedure is called whenever the form
is resized, BUT only after it is finished resizing, in order to prevent
flicker. OnResize falls down on that respect as does the WMSize that calls
it. I know about WM_EXITSIZEMOVE (except how does one tell if they just
finished moving or resizing). I also know about WM_SYSCOMMAND (and the need
to mask the WParam) and WM_NCLBUTTONDBLCLK.
I suppose if I detect SC_RESTORE in the WM_SYSCOMMAND, I don't need to
create an OnRestore event handler for the Application.
Is there any other circumstance and solution that I am missing, regarding
resizing, maximizing or restoring of forms?