Recent

Author Topic: Programatically select a cell in StringGrid/DrawGrid but don't invoke OnSelectCe  (Read 432 times)

domasz

  • Hero Member
  • *****
  • Posts: 528
I have some code in OnSelectCell that needs to be called when the cell is selected by user using keyboard or mouse.

Now I want to select (highlight) that cell programmatically but don't invoke that code. Any ideas, please?

paweld

  • Hero Member
  • *****
  • Posts: 1187
Code: Pascal  [Select][+][-]
  1. StringGrid1.OnSelectCell := nil;
  2. // selcect cell
  3. StringGrid1.OnSelectCell := @OnSelectCellProc;
Best regards / Pozdrawiam
paweld

domasz

  • Hero Member
  • *****
  • Posts: 528
That's brilliant, thanks!

 

TinyPortal © 2005-2018