Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
TStringGrid and scrollbars
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Links in forum posts
by
Martin_fr
[
Today
at 11:28:22 am]
LCL for arm (STM32MP1)
by
af0815
[
Today
at 11:27:21 am]
What are main differences...
by
marcov
[
Today
at 11:26:18 am]
Memory Leak. Missing 64 b...
by
howardpc
[
Today
at 11:18:19 am]
Type checking of units of...
by
circular
[
Today
at 10:35:37 am]
Component to sdf file - M...
by
Mi-Ki
[
Today
at 10:34:16 am]
Apple Lisa Source Code
by
PierceNg
[
Today
at 09:55:18 am]
File not open??? Why?
by
OC DelGuy
[
Today
at 09:22:36 am]
Getting info that is very...
by
alpine
[
Today
at 09:13:23 am]
Controls inside the form ...
by
GetMem
[
Today
at 08:11:31 am]
« previous
next »
Print
Pages: [
1
]
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
Logged
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;
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
TStringGrid and scrollbars
TinyPortal
© 2005-2018