Site icon Python GUI

OnSelectCell Event in DelphiVCL Library

woman wearing red and black checkered blouse using macbook

Photo by Christina Morillo on Pexels.com

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 implementation of an OnSelectCell event:

[crayon-663782b4913d0986461881/]

 

To see the result, let’s run the complete script:

[crayon-663782b4913fa118636187/]

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Exit mobile version