Site icon Python GUI

Learn About TWinControl For GUI Development With DelphiVCL

featuredimage2 4

In this post, you’ll learn more about TWinControl. TwinControl is the base class for all controls that are wrappers for Microsoft Windows screen objects. Learning more about TWinControl will allow you to easily build GUIs with Python Development Tools.

TWinControl provides the common functionality for all controls that act as wrappers for Microsoft Windows screen objects (“windows”). Controls that are wrapped underlying windows have the following features:

Controls based on TWinControl can display standard screen objects provided by Microsoft Windows, or customized screen objects developed by the VCL programmer.

Descendants of TWinControl include abstract base classes that support most kinds of user interface objects. The most significant descendant is TCustomControl, which provides code to implement a canvas and handle paint messages. Other important abstract descendants include TScrollingWinControl, TButtonControl, TCustomComboBox, TCustomEdit, and TCustomListBox. When defining new control classes, consider these descendants before deriving directly from TWinControl.

Every TWinControl object has a Handle property which provides the window handle for the underlying Microsoft Windows screen object. Use the Handle property to bypass the VCL API and directly access the underlying window.

 

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

Exit mobile version