DelphiVCL.ColorBox represents a combo box that lets users select a color.
Use ColorBox to provide the user with a drop-down combo box from which to select a color. Use the Style property to specify which colors the color box should list. Each color is displayed next to a small square that is drawn in the corresponding color.
Use the Selected property to access the color that the user…
Learn About delphivcl.Control
March 23, 2021
DelphiVCL.Control is the base class for all components that are visible at run time.
DelphiVCL.Control are visual components, meaning the user can see them and possibly interact with them at run time. All controls have properties, methods, and events that describe…
Learn About delphivcl.Graphic
March 23, 2021
DelphiVCL.Graphic or TGraphic is the abstract base class type for objects such as icons, bitmaps, and metafiles that can store and display visual images.
DelphiVCL.Graphic is an abstract class that cannot be instantiated. Descendant graphics objects override many of…
How to use the delphivcl.FreeConsole
March 23, 2021
When developing GUI applications and you need to provide console I/O, you need to call FreeConsole after you end your console I/O code block.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.FreeConsole using dir() command:
import DelphiVCL
dir(DelphiVCL.FreeConsole)
See the responses in our Windows command…
ActionList in DelphiVCL4Python
March 23, 2021
ActionList or TActionList maintains a list of actions that your application can take in response to something a user does, such as components and controls (e.g. menu items and buttons).
Use Action lists to centralize the response to user commands (actions). Action…
The documentation for Delphi’s VCL is available on Embarcadero’s DocWiki. You will notice that on DocWiki, all the VCL components are prefixed with a T. This is a convention of the Delphi language, but the DelphiVCL4Python module removes the T prefix for a more…
How to use the Show Method for DelphiVCL4Python Applications
March 14, 2021
We use the Show method to make a form or window visible.
Use the Show method to make visible a control that was previously hidden.
The Show method sets the control’s Visible property to true and ensures that the parent control is also visible.
Here is the working example of the implementation of the Show method:
def main():
Application.Initialize()
…
How to Change the Font Attributes
March 14, 2021
We use Font or TFont to specify the attributes of text written on or in the control.
To change to a new font, specify a new TFont object. To modify a font, change the value of the Charset, Color, Height, Name, Pitch, Size, or Style of the TFont object.
Note…
Let’s compare the DelphiVCL form with other Python GUI frameworks (we take the GUI created in this post as an example):
DelphiVCL provides better OS integration and styling by default. It provides Windows-10 styling to make your GUI looks professional and…
Python: Getting Started with DelphiVCL4Python III: Overview of Commonly Used VCL Components
March 12, 2021
To increase your familiarity with DelphiVCL Components, this post will show you a demo that presents commonly used VCL components, and call them one-by-one with Python.
The following is a Python code sample using DelphiVCL4Python:
from delphivcl import *
class MainForm(Form):
def __init__(self, Owner):
self.Caption = "Components Overview Sample"
self.Name = "BaseForm"
…