DelphiDelphiVCLPythonPython GUIWindows

How To Use The CanSelect Parameter

featuredimage2-4

CanSelect parameter is included inside the OnSelectCell event handler, while OnSelectCell 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 a CanSelect parameter:

See the complete code here.

The result:

2-4658413
3-2719332

 

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

close
Related posts
DelphiDelphiVCLPythonPython GUIWindows

How to use the State Property

DelphiPythonPython GUIWindows

Quickly Build A Python GUI Apps For Replacing And Extracting Keywords In Sentences Using FlashText Library In A Delphi Windows App

DelphiLearn PythonPythonPython GUIRAD Studio

Learn To Integrate Python Cryptographic Services To A Delphi Windows GUI App

DelphiDelphiVCLIDELearn PythonPythonPython GUIRAD StudioWindows

Python For Delphi VCL vs Python GUI Generator: wxGlade

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish