Hi,
I should know this but I can't find where I have done it before ...
I am using a TArrayBrowse and using :Addrow() to add data rows in a loop.
I want the 'cursor' to go to the last row added AND make the TArrayBrowse scroll to show the last few messages.
I have tried
oArrayBrowse:GoBottom()
ProcessMessages()
But this does not scroll the browse.
Any thoughts please.
Rhanks
Chria
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
TArrayBrowse .... using AddRow() .... Hilite to bottom of list with scrolling
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
- ignacio
- Site Admin
- Mensajes: 9252
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Re: TArrayBrowse .... using AddRow() .... Hilite to bottom of list with scrolling
I just have tried this:
And has worked correctly.
REgards,
Código: Seleccionar todo
METHOD FormInitialize( oSender ) CLASS TForm1
::oArrayBrowse1:SetArray(Directory("*.*" ) )
RETURN Nil
//------------------------------------------------------------------------------
METHOD BtnBmp1Click( oSender ) CLASS TForm1
LOCAL nFor
FOR nFor:= 1 TO 100
::oArrayBrowse1:AddRow( {"click!", 0, Date(), Time(), "A"} )
NEXT
::oArrayBrowse1:GoBottom()
RETURN Nil
REgards,
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
Re: TArrayBrowse .... using AddRow() .... Hilite to bottom of list with scrolling
Hi Ignacio,
You are absolutely right :GoBottom() works perfectly.
I have on idea what I was doing when I was testing it thought it did not work!
Apologies and thank you.
Chris
You are absolutely right :GoBottom() works perfectly.
I have on idea what I was doing when I was testing it thought it did not work!
Apologies and thank you.
Chris