trying to work with c4d.SCROLLGROUP_AUTOVERT...no
Helper last edited by
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/03/2012 at 07:33, xxxxxxxx wrote:
Ok so I am trying to get a ScrollGroup to only show the scroll bars when the dialog has been made smaller than the group...that probably makes no sense haha.
I see that ScrollGroupBegin() has a flag that seems to be intended for this purpose, but when I add the flag I get no scroll bar at all and the group takes up the whole dialog. I am creating alternate layouts for my plugin and to make it more flexible, and I would like the scroll bar to ONLY appear when it has to(when the user resizes the dialog). Nested within the ScrollGroup, I have a simple group of BitmapButtons arranged vertically with one column. Here is the code:
self.ScrollGroupBegin(dynamicGroup, c4d.BFH_CENTER | c4d.BFV_CENTER, c4d.SCROLLGROUP_AUTOVERT, 32)
self.GroupBegin(dynamicGroup, c4d.BFH_CENTER | c4d.BFV_CENTER, 1, 0, "Buttons")
#BUTTON CODE HERE#
The only way I get a scroll bar at all is to use the c4d.SCROLLGROUP_VERT flag, but that requires me to set the size of the scroll group defeating what I m trying to acheive.
Now the ScrollGroup may not be the issue. It seems as if the dialog can NEVER be resized smaller than the group...but I though that the c4d.SCROLLGROUP_AUTOVERT made that possible. Maybe it is just a newbie mistake. Any suggestions?
btw I am using a c4d.DLG_TYPE_ASYNC type dialog