thank you for reaching out to us. Please note that we do state in our forum guidelines under Support Procedures:
Support requests will be discussed by us internally and then be assigned to a team member. Because of that new topics will take at least one day to be answered. This procedure is in place so that each support request can benefit from the combined knowledge of the SDK team, and subsequently give the development community the best support possible.
About your question: The minimum size of an element has to be determined by you and depends on the subject of your UserArea. If you would implement for example a multiline textbox, then a sensible minimum height could be the number of pixels that that element requires to display a single line of characters and the minimum width would be an arbitrary value, you could say for example it should be at least n pixels wide, so that it can at least render m characters.
There are also some problems with how you have setup the draw method of your user area. See the example snippet at the end for details.
I hope this helps and cheers,
"""Example for drawing inside an UserArea.
If I do understand your question correctly, the problem of yours has little
to do with the scroll group, but more with how to draw something inside an
UserArea. See MyUserArea for details.
This example can be run in the script manger, and will create a dialog with
an UserArea in it that contains a scrollable red box.
As discussed in:
"""Renders a little red box on the canvas.
def DrawMsg(self, x1, y1, x2, y2, msg):
"""Called to draw the user area.
# Ensure we only draw within the visible area.
self.SetClippingRegion(x1, y1, x2, y2)
# The UserArea is being cached, so we first have to fill the area
# with a solid color.
self.DrawRectangle(x1, y1, x2, y2)
# Now we are going to draw something, so that we can see some
# scrolling. Just a little red box that goes over the full width of
# the user area, but only from the height 200 to 400.
self.DrawSetPen(c4d.Vector(1, 0, 0))
self.DrawRectangle(x1, 200, x2, 400)
"""Signalizes the minimum size to a hosting element.
The min size reflects the size below which a parent dialog cannot
shrink its content area. In this case the height has to be at least
400 pixels, because that is where our red box does end.
return (0, 400)
"""Presents an instance of our MyUserArea.
_userArea = MyUserArea()
"""Creates the elements of the dialog after it has been initialized.
self.ScrollGroupBegin(1000, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT,
if __name__ == "__main__":
# Little hack to handle an async dialog in the script manager, please do
# not use this in a production environment.
dlg = MyDialog()