This code will make line1 of the listbox highlighted. Pressing the down arrow 
moves the highlight to row #2.
        : (Form event code=On Load)
                ARRAY TEXT(A1;5)
                GOTO OBJECT(*;"ListBox")
                LISTBOX SELECT ROW(*;"ListBox";1)

This code does the same thing, except pressing the down arrow the first time 
has no apparent effect.
Pressing it a second time moves the cursor down as expected.
(btw, first pressing the up arrow key highlights the last populated line)
An entity selection listbox has the same behavior.
                ALL RECORDS([Client])
                GOTO OBJECT(*;"ListBox")
                LISTBOX SELECT ROW(*;"ListBox";1)
                GOTO SELECTED RECORD([Client];1)

Adding the line "POST KEY(Down arrow key)" is one way to solve the problem for 
the user.
Is there a less tricky way to fix that first down arrow behavior?

Thanks,
Keith
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to