[Lazarus] Locking down a string grid

Jesus Reyes jesusrmx at yahoo.com.mx
Tue Nov 30 18:06:57 CET 2010


--- El mar 30-nov-10, Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> escribió:

> 
> Is it possible to disable the selected-cell marker, i.e. to
> make the grid completely passive?

if you write an OnSelectCell event handler for the grid which do:

procedure TForm1.gridSelectCell(Sender: TObject; aCol, aRow: Integer;
  var CanSelect: Boolean);
begin
  CanSelect := false;
end;

The grid is effectively locked-down as there is no available cell to select, if you want also to hide the focus rectangle do grid.FocusRectVisible := false;




      




More information about the Lazarus mailing list