P
Peter Anthony
It seems kind of strange that if a Form is just moved that Resize events
fire. This makes it hard to tell the difference betweeen resizing and moving
a Form.
I can understand why resizing might also be considered a move (since the
Form's location can be thought to be based on one from Top/Bottom and one
from Left/Right, and some of these WILL change when resizing), but can't
understand why JUST moving is considered resizing. I was trying to create an
automatic pop-up window that shows the size dimensions (w,h) of the Form as
it is being resized. But it also comes up when I'm moving the Form, which
looks odd.
I suppose I could keep track of the size of the Form and then ignore any
Resize event if the size is unchanged. But IMHO that's a kludgy work around,
since IMHO Resize events should not fire if the Form doesn't change size!
fire. This makes it hard to tell the difference betweeen resizing and moving
a Form.
I can understand why resizing might also be considered a move (since the
Form's location can be thought to be based on one from Top/Bottom and one
from Left/Right, and some of these WILL change when resizing), but can't
understand why JUST moving is considered resizing. I was trying to create an
automatic pop-up window that shows the size dimensions (w,h) of the Form as
it is being resized. But it also comes up when I'm moving the Form, which
looks odd.
I suppose I could keep track of the size of the Form and then ignore any
Resize event if the size is unchanged. But IMHO that's a kludgy work around,
since IMHO Resize events should not fire if the Form doesn't change size!