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

    trying to work with c4d.SCROLLGROUP_AUTOVERT...no

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 171 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

      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#

      self.GroupEnd()
      self.GroupEnd()

      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

      Thanks!
      Marc

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