` Printed Icetips Article

Icetips Article



ABC: Scroll to top of child browse automatically
1999-07-03 -- Dennis E. Evans
 
Newsgroups: topspeed.products.c5ee

  One more note, the first post will move the highlight bar
to the top of the current queue.  That may not be the
first child record, may not be what you want after rereading
your post,  if you want the first child record then
do not use the code before the ResetQueue method use this
instead.

after the ResetQueue method

if ParentNewSelection
  ChildBrowse.TakeScroll(Event:ScrollTop)
  ParentNewSelection = false
end

That will start at the first record and not just the top of the queue.

Also if you have an update procedure for the child browse, you
need to set the flag to false after the update procedure has
been called.   Otherwise the child will scroll to the top after an
update of some kind.  There is a new selection event posted
when returning.

Sorry about any confusion, primarily on my part.

       Dennis



Printed April 30, 2024, 12:46 am
This article has been viewed/printed 35256 times.
Google search has resulted in 20 hits on this article since January 25, 2004.