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
    • Recent
    • Tags
    • Users
    • Login

    ScrollArea always crashes Cinema4D

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 238 Views
    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 Offline
      Helper
      last edited by

      On 31/05/2013 at 02:36, xxxxxxxx wrote:

      I was trying to use ScrollArea to mode the content of a ScrollGroup (it only contains a UserArea) but whenever I try do to so, Cinema4D crashes.
      Is there any known bug with ScrollArea? is it ok to use it inside a DrawMsg?
      Must I use it elsewhere?

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

        On 31/05/2013 at 04:00, xxxxxxxx wrote:

        What do you mean by 'I was trying to use ScrollArea to mode the content' ? From my 
        experience there are almost no restrictions in using GeDialog methods. You can draw 
        and modify from almost everywhere, as long as you do make sure your calls are placed 
        after InitValues() and target of course only already created gadgets. The same goes for
        GeUserArea. Please also note that this does include methods that seem to be harmless. 
        Calling GeUserArea.GetColorRGB() before  GeUserArea.InitValues() for example will cause 
        errors and in consequence your GeUserArea will not to be drawn and in some scenarios 
        c4d will even crash.

        You can set a scroll groups visible region manually with GeDialog.SetVisibleArea(). But 
        normally you won't have do this, but instead resize the GeUserArea inside it. Check 
        GeUserArea.Sized(), GetMinSize() and LayoutChanged() to dynamically resize the drawn 
        content and the size of your UserArea.

        here is an example of a dynamically resized GeUserArea: 
        http://codepad.org/RgH49n9G

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