For controls setting a Browse filter value, often my code will immediately SELECT the just reset browse list to show/scroll the new query results.
However, when a SPIN is used as the filter value control, the SPIN control retains focus no matter what code I have tried for forcing selection of the browse list.
The attached test code shows the situation by essentially doing the following:
CASE EVENT()
OF EVENT:NewSelection
IF FIELD() = ?SPIN
L:SpinValue += 1
POST(EVENT:Accepted,?SPIN,True) ! Force ACCEPTED for ?SPIN
END
OF EVENT:Accepted
SELECT(?LIST)
…
END
Perhaps my explanation of desired behaviour was a bit short.
A new selection of the SPIN (click of H ScrollBar), does not result in focus moving to the list expected in the example code (w/ or w/o IMM on the list).
The confusion regarding control focus is the SPIN control remains highlighted even though the LIST becomes scrollable. This is different from using tab to move from the spin control to the list - ie the spin does not stay highlighted.