In the previous examples, we already use the .SetProps several times (see Section 7: Getting Started with DelphiVCL III: Overview of Commonly used VCL Components).
Use SetProps to set specific properties to components.
Here are the working examples taken from the Section 7: Getting Started with DelphiVCL III: Overview of Commonly used VCL Components:
Implemented in creating…
What is Active Property in delphivcl.Application?
May 22, 2021
Active property or DelphiVCL.Application.Active is used to specify whether the application is active and has focus.
Active is true while the application is active and false if it is not. Active is set to true in the constructor.
An application is active if the…
ActivateHint method or DelphiVCL.Application.ActivateHint is used to display a hint window for the control at a specified position.
ActivateHint locates the control or menu item at the position specified by CursorPos, where CursorPos represents a screen coordinate in…
.SetBounds will set the Left, Top, Width, and Height properties all at once.
Use SetBounds to change all of the component’s boundary properties at one time. The same effect can be achieved by setting the Left, Top, Width, and Height properties separately, but SetBounds changes all four properties at once ensuring that the control will not repaint between changes.
This is the…
The Delphi Run-Time Library (or RTL) is composed of a number of base units that provide the underlying support for most of the VCL component libraries. The RTL includes global routines, utility classes such as those that represent streams and lists, and classes such as…
Learn About delphivcl.WinControl
May 21, 2021
DelphiVCL.WinControl or TWinControl is the base class for all controls that are wrappers for Microsoft Windows screen objects.
TWinControl provides the common functionality for all controls that act as wrappers for Microsoft Windows screen objects…
Learn About delphivcl.StringGrid
May 19, 2021
DelphiVCL.StringGrid or TStringGrid represents a grid control designed to simplify the handling of strings and associated objects.
Add a TStringGrid object to a form to present textual data in a tabular format. TStringGrid provides many properties to control the appearance of the grid, as well as events and methods that take advantage of the tabular organization of the grid in responding to…
In DelphiVCL Library or Python in general, the following methods can be defined to emulate numeric objects. Methods corresponding to operations that are not supported by the particular kind of number implemented (e.g., bitwise operations for non-integral numbers) should be…
Create a Tabular Format with delphivcl.DrawGrid
May 16, 2021
DelphiVCL.DrawGrid represents a grid control that displays information in column and row format.
Add a DelphiVCL.DrawGrid object to a form to present arbitrary information in a tabular format. DrawGrid provides many properties to control the appearance of the grid, as…
Add Strings to Various Components using .Items
May 12, 2021
In previous examples, we already use .Items several times (see Getting Started with DelphiVCL III: Overview of Commonly used VCL Components). We use it in ListBox, ComboBox, and RadioGroup. Items contain the strings that appear in the ListBox, ComboBox, and RadioGroup.
Use Items to add, insert, delete and move items. By default, the items in a list box are of type Strings. Use this item type to…