private bool StartResize(ResizeDir resDir) { if (!this.stickOnResize) { return false; } this.resizeDirection = resDir; this.formRect = this.originalForm.Bounds; this.formOriginalRect = this.originalForm.Bounds; if (!this.originalForm.Capture) { this.originalForm.Capture = true; } this.MessageProcessor = this.ResizeMessageProcessor; return true; }
private bool StartResize(ResizeDir resDir) { if (StickOnResize) { _resizeDirection = resDir; _formRect = _originalFormAdapter.Bounds; _formOriginalRect = _originalFormAdapter.Bounds; // save the old bounds if (!_originalFormAdapter.Capture) // start capturing messages { _originalFormAdapter.Capture = true; } _messageProcessor = _resizeMessageProcessor; return(true); // catch the message } return(false); // leave default processing ! }
private bool StartResize(ResizeDir resDir) { if (stickOnResize) { resizeDirection = resDir; formRect = originalForm.Bounds; formOriginalRect = originalForm.Bounds; // save the old bounds if (!originalForm.Capture) // start capturing messages { originalForm.Capture = true; } MessageProcessor = ResizeMessageProcessor; return(true); // catch the message } else { return(false); // leave default processing ! } }
private bool StartResize(ResizeDir resDir) { if (_owner._stickOnResize) { _resizeDirection = resDir; _formBounds = _originalForm.Bounds; _formOriginalBounds = _originalForm.Bounds; // save the old bounds if (!_originalForm.Capture) // start capturing messages _originalForm.Capture = true; _messageProcessor = _resizeMessageProcessor; return true; // catch the message } else return false; // leave default processing ! }
private bool StartResize(ResizeDir resDir) { if (stickOnResize) { resizeDirection = resDir; formRect = originalForm.Bounds; formOriginalRect = originalForm.Bounds; // save the old bounds if (!originalForm.Capture) // start capturing messages originalForm.Capture = true; MessageProcessor = ResizeMessageProcessor; return true; // catch the message } else return false; // leave default processing ! }