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

    GUI Layout Flags

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 151 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 13/11/2012 at 06:02, xxxxxxxx wrote:

      I still do not understand the GUI layout flags. They do not do what I expect.
      E.g. I cannot get BHF_SCALE or BHF_LEFT to work.

      I would expect that below code, would extend the whole field (make it as big as possible).
            self.AddEditNumberArrows(id=MY_GLOBERADIUS, flags=c4d.BFH_SCALE)

      or right position it
            self.AddEditNumberArrows(id=MY_GLOBERADIUS, flags=c4d.BFH_RIGHT)

      Could someone explain this?

      Layout flags:

      BFH_CENTER Centered horizontally.
      BFH_LEFT Aligned to the left.
      BFH_RIGHT Aligned to the right.
      BFH_FIT BFH_LEFT BFH_RIGHT
      BFH_SCALE Scale if there's more space.
      BFH_SCALEFIT BFH_SCALE BFH_FIT
      BFH_MASK Masks out these flags.
      _<_t_>_ BFV_CENTER Centered vertically.
      --- ---
      BFV_TOP Aligned to the top.
      BFV_BOTTOM Aligned to the bottom.
      BFV_FIT BFV_BOTTOM BFV_TOP
      BFV_SCALE Scale if there's more space.
      BFV_SCALEFIT BFV_SCALE BFV_FIT
      BFV_MASK Masks out these flags._/t>
      1 Reply Last reply Reply Quote 0
      • First post
        Last post