Recent

Author Topic: [SOLVED] RxDBGrid: how to check the option dgIndicator  (Read 1890 times)

zoltanleo

  • Hero Member
  • *****
  • Posts: 522
[SOLVED] RxDBGrid: how to check the option dgIndicator
« on: September 08, 2016, 09:31:13 am »
Hi friends.

I need to check in the code option dgIndicator. If I write such code
Code: Pascal  [Select][+][-]
  1. if TRxDBGrid(Sender).Options in [dgIndicator]... //uses DBGrids

 the compiler gives this error
Code: Pascal  [Select][+][-]
  1. unit1.pas(79,32) Error: Operator is not overloaded

Help to get the desired result
« Last Edit: September 08, 2016, 10:15:39 am by zoltanleo »
Win10 LTSC x64/LMDE7-x11-x86_64(gtk2/gtk3)/Fedora-44-wayland-x86_64(gtk2/gtk3)/ Kubuntu-24-x11-x86_64(qt5/qt6)/KDE Neon-wayland-x86_64(qt5/qt6)/Darwin Cocoa x86_64 (15.7.7):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 5.0.3 x86_64; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

zoltanleo

  • Hero Member
  • *****
  • Posts: 522
Re: [SOLVED] RxDBGrid: how to check the option dgIndicator
« Reply #1 on: September 08, 2016, 10:17:30 am »
A solution is found.

Special thanks to the author of the component RxDBGrid - alexs
Code: Pascal  [Select][+][-]
  1. if dgIndicator in TRxDBGrid(Sender).Options
Win10 LTSC x64/LMDE7-x11-x86_64(gtk2/gtk3)/Fedora-44-wayland-x86_64(gtk2/gtk3)/ Kubuntu-24-x11-x86_64(qt5/qt6)/KDE Neon-wayland-x86_64(qt5/qt6)/Darwin Cocoa x86_64 (15.7.7):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 5.0.3 x86_64; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

 

TinyPortal © 2005-2018