Recent

Author Topic: TStringGrid question(Solved)  (Read 457 times)

JLWest

  • Hero Member
  • *****
  • Posts: 1293
TStringGrid question(Solved)
« on: February 16, 2023, 12:26:51 am »
I have a form with a grids. It works and looks good, except for:

I highlight a line and scroll up and down in the grid. . What I would like is to click on a line and when I scroll up or down with the mouse wheel I would like the highlighted line to remain on the clicked line.

Anyway to do that?

Thanks.
« Last Edit: February 16, 2023, 01:15:45 am by JLWest »
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: TStringGrid question
« Reply #1 on: February 16, 2023, 12:44:24 am »
Set property MouseWheelOption to mwGrid.
« Last Edit: February 16, 2023, 02:19:00 am by Blaazen »
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/

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: TStringGrid question
« Reply #2 on: February 16, 2023, 01:15:18 am »
yea, Works.
Thanks
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

 

TinyPortal © 2005-2018