Recent

Author Topic: TStringGrid: Options by coding?  (Read 225 times)

Jvan

  • Full Member
  • ***
  • Posts: 108
TStringGrid: Options by coding?
« on: August 03, 2020, 08:49:50 pm »
I'm trying this:

Code: Pascal  [Select][+][-]
  1. grdAstCont.Options.goRowSelect:=False;
  2.  

But I get this: "Error: Illegal qualifier"

Blaazen

  • Hero Member
  • *****
  • Posts: 2906
  • POKE 54296,15
    • Eye-Candy Controls
Re: TStringGrid: Options by coding?
« Reply #1 on: August 03, 2020, 09:00:01 pm »
Code: Pascal  [Select][+][-]
  1. grdAstCont.Options:=grdAstCont.Options-[goRowSelect];

Note: exclude(grdAstCont.Options, goRowSelect); does not work here because it is property.
Lazarus 2.1.0 r63881 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Jvan

  • Full Member
  • ***
  • Posts: 108
Re: TStringGrid: Options by coding?
« Reply #2 on: August 03, 2020, 11:22:32 pm »
Thanks!

 

TinyPortal © 2005-2018