DelphiDelphiVCLLearn PythonPythonPython GUIWindows

Learn about DelphiVCL.CustomControl

featuredimage2 4

DelphiVCL.CustomControl is a base class for controls that wrap Windows screen objects but perform their own rendering.

In most descendants of TWinControl, the job of drawing the control’s surface belongs to the underlying Windows screen object. If a control has visible features that cannot be rendered by a Windows screen object, it requires access to a canvas object so it can do its own drawing.

TCustomControl is one of two base classes for controls that draw their own surfaces. Because TCustomControl is descended from TWinControl, instances of its descendants can receive focus and serve as containers.

Classes of controls that perform their own screen rendering and do not need the features of TWinControl should be descendants of TGraphicControl instead of TCustomControl. TGraphicControl objects can render themselves with less overhead, because they do not have underlying Windows screen objects.

TCustomControl objects have a Paint method, which is called whenever the control needs to render its image. Custom controls paint themselves using the Canvas property.

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

See the responses in our Windows command prompt:

0dir 7725136

You can also read short informations about the DelphiVCL.CustomControl using the print() command:

See the responses in our Windows command prompt:

0print 9585473


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

Related posts
CodeDelphiDelphiFMXLearn PythonProjectsPythonPython GUI

How To Create A Weather App With The Python Delphi Ecosystem and Weatherstack API

CodeDelphiDelphiFMXLearn PythonProjectsPythonPython GUI

How To Create A Music Player With The Python Delphi Ecosystem


Unlock the Power of Python for Deep Learning with Transformer Architecture - The Engine Behind ChatGPT

CodeDelphiDelphiFMXLearn PythonProjectsPythonPython GUI

How to Build An Image Editor Using DelphiFMX Python Package

Leave a Reply

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