Site icon Python GUI

Write a String inside a Clipping Rectangle using TextRect

abstract background with blue stains

Photo by Alexander Ant on Pexels.com

We use TextRect to write a string inside a clipping rectangle or within a limited rectangular region. Any portions of the string that fall outside the rectangle passed in the Rect parameter are clipped and don’t appear. The upper left corner of the text is placed at the point (X, Y).

Here is the working example of the implementation of an OnClose event like in the Section 7 (Getting Started with DelphiVCL III: Overview of Commonly used VCL Components):

[crayon-6621b61aabba5734586708/]

 

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

Exit mobile version