G
Guest
I have a main form (AutoScroll = false) that contains a panel (AutoScroll =
true) that contains a custom control that has its own OnPaint and draws
images on to the control form. The panel fits within the dimensions of the
main form while the custom control is larger than the panel. Everything seems
to work fine as far as displaying the scrollable area until any other dialog
is closed. The x,y coordinates of the ClientRectangle of the custom control
are reset to 0,0 when any other dialog withing the system close, thus the
scrollable region is repositioned. The same does not happen as the dialog is
being moved on top of the image being drawn or when other custom painting on
the customer control takes place. The issue here is that I don't want the
scrollable area to be repositioned when another form is closed. Is there
something obvious that I am missing on why the coordinates of the
CLientRectange are being reset to 0,0?
true) that contains a custom control that has its own OnPaint and draws
images on to the control form. The panel fits within the dimensions of the
main form while the custom control is larger than the panel. Everything seems
to work fine as far as displaying the scrollable area until any other dialog
is closed. The x,y coordinates of the ClientRectangle of the custom control
are reset to 0,0 when any other dialog withing the system close, thus the
scrollable region is repositioned. The same does not happen as the dialog is
being moved on top of the image being drawn or when other custom painting on
the customer control takes place. The issue here is that I don't want the
scrollable area to be repositioned when another form is closed. Is there
something obvious that I am missing on why the coordinates of the
CLientRectange are being reset to 0,0?