DelphiDelphiVCLPythonPython GUIWindows

How to use the Parent Property

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 buttons are the child controls of the group box. To serve as a parent, a control must be an instance of a TWinControl…
Read more
DelphiDelphiVCLPythonPython GUIWindows

OnSelectCell Event in DelphiVCL Library

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 selected. Set the CanSelect parameter to False to prevent the cell being selected. Here is the working example of the…
Read more
DelphiDelphiVCLPythonPython GUIWindows

Understanding DelphiVCL.Application.BeginInvoke

BeginInvoke method or DelphiVCL.Application.BeginInvoke is used to perform an asynchronous call to the method specified by either AProc or AFunc. The AContext parameter specifies the context where the method executes in. This context corresponds to the main thread. In case of a Tcontrol descendant, it executes in the context of the thread on which the closest window handle was…
Read more