Preventing scroll regions

Posted by rbf on 22-Aug-2008 07:06

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.

All Replies

Posted by Simon de Kraa on 22-Aug-2008 11:56

Scroll Regions are ment to split the grid into multiple regions that can be scrolled individually. See attachment.

I get the feeling you have something else in mind?

Posted by rbf on 25-Aug-2008 01:52

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.

Posted by rbf on 25-Aug-2008 01:59

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.

Posted by Simon de Kraa on 25-Aug-2008 04:17

Not in my case...

In example above I have set MaxColScrollRegions and MaxRowScrollRegions explicitely to a value > 1. Default there are no scroll regions.

Posted by rbf on 25-Aug-2008 04:44

Could it be that you are not using the Visual Designer?

Posted by Simon de Kraa on 25-Aug-2008 09:56

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...

This thread is closed