Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

ScrollPos

Had a small issue with ScrollPos not working properly in a specific situation.

I have a table which say has 100 lines.
I scroll down half way with the scroll bar.
Then a function on the form allows me to do a filter on the table, which changes the row visiblity property, resulting in say 10 rows.
The table refreshes, but only the last row is seen.

So, I think, I will use the ScrollPos to set this to 1,1
And even set SelPos to 1,1 also.
This does not always resolve the issue and show the complete table.
These were set after the table was populated.

The solution for me was to set these before populating the table, and the issue was resolved.
Call Set_Property(TableControl,"OLE.SelPos",1:@FM:1) Call Set_Property(TableControl,"OLE.ScrollPos",1:@FM:1) CALL Set_Property(TableControl,"OLE.Redraw",0) CALL Set_Property(TableControl,"OLE.DataRow[All]",@FM:1) Call Set_Property(TableControl,"OLE.Array",FULL_TABLE) Call Set_Property(TableControl,"OLE.Focus",1) CALL Set_Property(TableControl,"OLE.Redraw",1)
Sign In or Register to comment.