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…
OnChange Event in DelphiVCL4Python Library
May 29, 2021
OnChange event occurs when the user changes the text displayed in the edit region.
We write an OnChange event handler to take specific action immediately after the user edits the text in the edit region or selects an item from the list. The Text property gives the new…
OnClick Event in DelphiVCL4Python Library
May 28, 2021
OnClick event occurs when the user clicks the control.
We use the OnClick event handler to respond when the user clicks the control. If the control has an associated action, and that action has an OnExecute method, the action’s OnExecute method responds to click…
Understanding DelphiVCL.Application.BiDiMode
May 28, 2021
BiDiMode property or DelphiVCL.Application.BiDiMode is used to indicate the layout of the application when running under Middle Eastern versions of Windows.
Use BiDiMode to specify the bi-directional mode for the application. The bi-directional mode controls the direction in which text appears (left-to-right or right-to-left), the placement of vertical scroll bars, and the default alignment…
Understanding DelphiVCL.Application.BiDiKeyboard
May 28, 2021
BiDiKeyboard property or DelphiVCL.Application.BiDiKeyboard is used to specify the name of the keyboard map that should be used in middle-east locales when text reads from right to left.
This name is a string composed of the hexadecimal value of the language…
Understanding DelphiVCL.Application.BeginInvoke
May 28, 2021
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…
Learn About DelphiVCL.Application.BeforeDestruction
May 28, 2021
BeforeDestruction method or DelphiVCL.Application.BeforeDestruction is used to respond before the first destructor executes.
BeforeDestruction is called automatically before the object’s first destructor executes. Do not call it explicitly in your applications.
The BeforeDestruction method implemented in TObject does nothing. Override this method when creating a class that…