Recent

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

Jvan

  • Full Member
  • ***
  • Posts: 181
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: 3237
  • 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.3.0 (rev main-2_3-2863...) FPC 3.3.1 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: 181
Re: TStringGrid: Options by coding?
« Reply #2 on: August 03, 2020, 11:22:32 pm »
Thanks!

 

TinyPortal © 2005-2018