ScrollArea always crashes Cinema4D

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?

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: