Subject Re: open form data entryfields scroll to focus
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Sat, 9 May 2020 13:19:39 -0700
Newsgroups dbase.getting-started

On 5/9/2020 11:57 AM, edward racht wrote:
> What code is used to not have data entryfields scroll to selected rowset
> on focus when opening?  this looks like a flutter.
>
> i remember this was in discussions in the last century but cannot find
> them.
>
> I have forms with tabbox class and other forms with notebook class.
>
> The large data file entryfieldss make an adjustment flutter on the index
> rowset.

I am not 100% sure of what you're asking ... is this a case of the form
is navigating to a rowset in a table (or tables) and the data is
"fluttering" on the screen as it gets to the selected row?

If so, have you looked at the rowset's notifyControls property? If you
set it to false, navigate, then set it to true, and then do a
rowset.refreshControls() it should update without flicker. Something
like (not tested, doing this off the top of my head):

    function form_onOpen()
       form.rowset.notifyControls := false
       // navigate to the row you need using whatever code you're
currently using
       form.rowset.notifyControls := true
       form.refreshControls()
    return

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm