jcompagner wrote:what do you exactly do to show the form?
So can you show me the code that shows the form?
jcompagner wrote:so that form was already shown somewhere?
And you dont change the foundset of that form (loadRecords) or you dont set the selection at any point, you just show it again in a tab?
Then the behavior is so that the tableview when it shows is still at the same scroll location as it was the last time you did leave the form.
So the form you show. How did it look and what was the scroll position when you showed it the last time?
jcompagner wrote:i cant reproduce that what you get
See my attached sample solution
That are 3 order_details screens (example_data server)
the first i create a special foundset fill it will some stuff and then set the selected index to 150
then i show that foundset in the other 2, 1 main with a unrelated tab also on the order_details scherm
and you see the form in tab does scroll. Because that form did get a new foundset.
also when you then go back to the first form, through window menu, and change there the selection
and then go back to the orders_details3 screen. You see that the tab panel did change the selection.
jcompagner wrote:still cant reproduce it
Please change the sample below
i added a button that does exactly what you say
open the sample
(your point 0 and 1)
press load (to load really a different foundset and search, and set the index on a position)
(your point 2)
then press show table
(your point 3 and 4)
jcompagner wrote:We dont suddenly are going to scroll to the (first we now have multiselect!) selection when you switch between forms or tabs.
jcompagner wrote:as i said, if the user scrolled to a position X
then he goes away from that form (onhide is called) by for example clicking on another tab besides this form in a tabpanel
then he goes back (onshow) but nothing is changed for that form, then the scrollbar will be still at position X
We are not going to scroll just because the user swaps between tabs, in and out of the form. Thats bad behavior. UI should be stable.
Users browsing this forum: No registered users and 2 guests