Recent

Author Topic: TStringGrid and scrollbars  (Read 4077 times)

Kunstbanause

  • New Member
  • *
  • Posts: 47
TStringGrid and scrollbars
« on: April 30, 2010, 01:20:04 pm »
Hi,

is there any way to change the position of the scrollbars of a TStringGrid within the code?
Like:
Code: [Select]
begin
  stringgrid1.HorzScrollBar.Position := 0;
end;

I searched but I couldn't find a way to manipulate the position of the scrollbars (or maybe I have overseen it).

Thanks in advance for (hopefully) positive answers :)

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1917
Re: TStringGrid and scrollbars
« Reply #1 on: April 30, 2010, 02:15:30 pm »
I don't know if you can move the scrollbars in code, but you can "navigate" to a certain cell using:

Code: [Select]
StringGrid1.Row:=20;
StringGrid1.Col:=5;

 

TinyPortal © 2005-2018