DelphiDelphiVCLPythonPython GUIWindows

Learn About DelphiVCL.Rect

featuredimage2 4

DelphiVCL.Rect or TRect defines a rectangle.

TRect represents the dimensions of a rectangle. The coordinates are specified as either four separate integers representing the left, top, right, and bottom sides, or as two points representing the locations of the upper-left and lower-right corners.

Typically, DelphiVCL.Rect values represent pixel locations, where the origin of the pixel coordinate system is in the upper-left corner of the screen (screen coordinates) or the upper-left corner of a control’s client area (client coordinates). When a TRect value represents a rectangle on the screen, by convention the top and left edges are considered inside the rectangle and the bottom and right edges are considered outside the rectangle. This convention allows the width of the rectangle to be Right – Left and the height to be Bottom – Top.

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Rect using dir() command:

See the responses in our Windows command prompt:

0dir 6880386

You can also read short information about theDelphiVCL.Rect using the print() command:

See the responses in our Windows command prompt:

0print 4350037

Here is the working example of the implementation of Rect:

See the complete code here.

The result:

2 5886892

 

3 7007527

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Related posts
CodeIDEPythonPython GUIWindows

Unlock the Power of Python for Deep Learning with Recurrent Neural Networks

AndroidCodeDelphiLearn PythonProjectsPythonPython GUI

How to Create a BMI App With Delphi Ecosystem And Python

AndroidCodeDelphiDelphiFMXLearn PythonProjectsPythonPython GUI

How to Create a Stopwatch/Timer Android App With Delphi For Python?

AndroidCodeDelphiDelphiFMXLearn PythonProjectsPythonPython GUI

How to Create a Unit Converter Android App Using Python GUI

Leave a Reply

Your email address will not be published. Required fields are marked *