/*********************************************************************
         * For any changes to the dimension of the HALCON window, that
         * is performed outside of the HWndCtrl instance (by not using the
         * method scaleWindow()), the state of the internal parameter
         * ZoomWndFactor needs to be updated to the new size to assure a
         * correct scaling relation for the zoom view function
         * ******************************************************************/
        private void viewPort_Resize(object sender, System.EventArgs e)
        {
            if (!locked)
            {
                // update of the internal parameter to the new size of
                // the HALCON window
                viewControl.setZoomWndFactor();

                locked = true;
                zoomWndComboBox.SelectedIndex = 0;
                locked = false;
            }
        }