Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Scroll to bottom of TStringGrid, TListbox etc

548 views
Skip to first unread message

Nigel Scott

unread,
Aug 20, 2002, 3:36:40 PM8/20/02
to
Hi:

Is there a way to permanently display by a runtime process
the bottom row of these VCL's? It is assumed the some
runtime process is continuously loading data into these
VCL's but is not until this stops that the user has control
of the vertical scrollbar. Do we have control of that
Scrollbar at runtime?

Thanks, Nigel

Hans Lohninger

unread,
Aug 21, 2002, 3:58:42 PM8/21/02
to
Nigel Scott <nsc...@telusplanet.net> wrote in message news:<3D629A48...@telusplanet.net>...

Set the property TopIndex after each added item. Don't forget to call
Application.Processmessages.

Regards,

Hans


---
Hans Lohninger
Software Development Lohninger
Try the SDL Component Suite for Delphi!
http://www.lohninger.com/sdlindex.html

Peter Below (TeamB)

unread,
Aug 21, 2002, 6:53:15 PM8/21/02
to

In a way, yes. TStringgrid has a TopRow property, which you can use to
get the grid to scroll. And about any control that has a scrollbar can
be scrolled to the end of its scrollrange using a WM_VSCROLL message,
like

control.Perform( WM_VSCROLL, SB_BOTTOM, 0 );

You have to call the controls Update method to get a visible effect,
however, if you do this in a loop that does not allow the app to
process messages. It would flicker like mad under these conditions,
however.

--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be


0 new messages