Suggestion: Draw Rectangle with centered side handles

 
Dear Programmers,

I frequently use rectangles and I miss having handles in the center of the sides, because stretching the rectangle using corner handles changes the initial position, forcing me to go back and correct it EVERY TIME.

Thank you for your help and congratulations on the excellent work in MT5!!!

obs: Image with example below..

Files:
 
Alexandre Costa:
Dear Programmers,

I frequently use rectangles and I miss having handles in the center of the sides, because stretching the rectangle using corner handles changes the initial position, forcing me to go back and correct it EVERY TIME.

Thank you for your help and congratulations on the excellent work in MT5!!!

obs: Image with example below..

Its actually best with the canvas class https://www.mql5.com/en/articles/10361
Using the CCanvas class in MQL applications
Using the CCanvas class in MQL applications
  • 2022.04.14
  • www.mql5.com
The article considers the use of the CCanvas class in MQL applications. The theory is accompanied by detailed explanations and examples for thorough understanding of CCanvas basics.