The ClassName method or DelphiVCL.Application.ClassName is used to return a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
Use ClassName to obtain the class name from an object instance or class reference. This is useful for differentiating object instances that are assigned to a variable that has the type of an ancestor…
The ClassInfo method or DelphiVCL.Application.ClassInfo is used to return a pointer to the run-time type information (RTTI) table for the object type.
ClassInfo provides access to the RTTI table for a given object type.
Some classes do not provide run-time type…
Understanding delphivcl.Application.CancelHint
June 6, 2021
The CancelHint method or DelphiVCL.Application.CancelHint is used to cancel the display of a hint for a control.
Applications rarely, if ever, call CancelHint directly. CancelHint is used internally to cancel the display of hints at appropriate times, such as when a…
Learn Python With How I Solved My NYC Parking Problem Using Python by Jessica Garson (PyCon 2020) Video
June 5, 2021
Python programming language is one of the widely used programming languages in the world. It is often described as an easy-to-use language and is most ideal for beginners. We have learned from the previous videos from the recently concluded PyCon 2020 that Python has been used in many different fields such as physics, agriculture, and more. In this video shared by Jessica Garson, we will realize…
How to use the Caption Property
June 4, 2021
We use Caption to specify a text string that identifies the control to the user.
To underline a character in a Caption that labels a component, include an ampersand (&) before the character. This type of character is called an accelerator character. The user can…
How to use the Parent Property
June 3, 2021
We use the Parent property to get or set the parent of the control. The parent of a control is the control that contains it. For example, if an application includes three radio buttons in a group box, the group box is the parent of the three radio buttons, and the radio…
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…
OnClose Event in DelphiVCL4Python Library
June 1, 2021
OnClose event occurs when the form closes.
We use OnClose to perform special processing when the form closes. The OnClose event specifies which event handler to call when a form is about to close. The handler specified by OnClose might, for example, test to make sure…
OnSelectCell Event in DelphiVCL4Python Library
May 31, 2021
OnSelectCell event occurs before a cell in the grid is selected.
Write an OnSelectCell event handler to specify whether any particular cell in the grid can be selected. The Col and Row parameters indicate the column and row indexes of the cell that is about to be…
OnDrawCell Event in DelphiVCL4Python Library
May 30, 2021
OnDrawCell event Occurs when a cell in the grid needs to be drawn.
We write an OnDrawCell event handler to draw the contents of all the cells in the grid. Draw on the cell using the methods of the Canvas property. The Rect parameter indicates the location of the cell on the canvas. The Col and Row parameters indicate the column and row indexes of the cell that should be drawn. The State…