Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    KDZ Set ScrollGroup to top

    SDK Help
    0
    2
    169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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:

      User Information:
      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?

      Thanks,
      Robert

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        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? 😉

        Robert

        1 Reply Last reply Reply Quote 0
        • First post
          Last post