How can you prevent the irritating scroll regions when the user resizes the WinGrid? I have tried all combinations of setting MaxColScrollRegions and MaxRowScrollRegions to 1 as the documentation suggests, even after resizing, but all to no avail.
Well yes you are illustrating what I don't want to happen by default. If the user widens the screen in order to see additional data a scroll region is added repeating what the user already sees. Instead I would like the user to be able to see the additional data until the horizontal scrollbar disappears.
Strange: when examining the generated source I noticed these statements:
THIS-OBJECT:myGrid:DisplayLayout:ColScrollRegions:Add(colScrollRegion1).
THIS-OBJECT:myGrid:DisplayLayout:ColScrollRegions:Add(colScrollRegion2).
THIS-OBJECT:myGrid:DisplayLayout:ColScrollRegions:Add(colScrollRegion3).
THIS-OBJECT:myGrid:DisplayLayout:ColScrollRegions:Add(colScrollRegion4).
THIS-OBJECT:myGrid:DisplayLayout:ColScrollRegions:Add(colScrollRegion5).
THIS-OBJECT:myGrid:DisplayLayout:ColScrollRegions:Add(colScrollRegion6).
THIS-OBJECT:myGrid:DisplayLayout:ColScrollRegions:Add(colScrollRegion7).
THIS-OBJECT:myGrid:DisplayLayout:ColScrollRegions:Add(colScrollRegion8).
I don't know how they got there, but when I removed them my problem was solved.
Not in my case...
In example above I have set MaxColScrollRegions and MaxRowScrollRegions explicitely to a value > 1. Default there are no scroll regions.
Could it be that you are not using the Visual Designer?
I did use the Visual Designer, but I re-used the Purchase Order screen from the SampleAppSolution and put a WinGrid on it so I didn't start from scratch...
The generated code looks like:
THIS-OBJECT:ultraGrid1:DisplayLayout:MaxColScrollRegions = 3.
THIS-OBJECT:ultraGrid1:DisplayLayout:MaxRowScrollRegions = 3.
No more ScrollRegions related code...