DelphiDelphiVCLPythonPython GUIWindows

Understanding DelphiVCL.Application.CancelHint

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 window is not valid or when the application closes. CancelHint calls a series of routines that clean up the display and timing…
Read more
DelphiDelphiVCLPythonPython GUIWindows

Write a String inside a Clipping Rectangle using TextRect

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…
Read more
DelphiDelphiVCLPythonPython GUIWindows

OnDrawCell Event in DelphiVCL Library

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…
Read more