THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/07/2004 at 12:09, xxxxxxxx wrote:
Cinema 4D Version: 8.503
Platform: Windows ;
Language(s) : C++ ;
Okay, I'll bite. How do you do this? There is a ScrollGroup in my dialog with dynamic content. When the content changes (and the scrollbar is not at the top), I'd like to reset it to the top. Somehow I figure that this requires getting the UserArea for the ScrollGroup in order to call ScrollArea(). Perchance, how?
On 26/07/2004 at 12:22, xxxxxxxx wrote:
Found it (again needing to thoroughly check methods for capabilities).
// Reset ScrollArea to top
LONG x1, y1, x2, y2;
GetVisibleArea(GROUP_SCROLL, &x1;, &y1;, &x2;, &y2;);
SetVisibleArea(GROUP_SCROLL, 0, 0, x2-x1, y2-y1);
Definitely the long way round to setting the x,y position to 0,0, don't you think?