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

    GeUserArea maximum size

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 223 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 01/05/2012 at 00:52, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,
      probably a pretty dumb question:
      Is there a way to constrain the maximum size of a user area?
      I know, minimum size is no problem. Now, I'd like to constrain the maximum height or width dynamically. But when Sized() is called, there's no way to report back, that one is not able to handle a size request of the given size and would like to keep (at least) one direction smaller than requested?
      Basically I'd like to constrain the size to a more or less rectangular shape.
      Would I be better off by rather handling the "sized" message?
      Or is this simply impossible?

      Regards,
      Andreas

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 01/05/2012 at 08:02, xxxxxxxx wrote:

        Think of a GeUserArea as a virtual infinite plane (but with a boundary at 0,0 top/left) that is windowed into using a particular size view area that is displayed - you may not have control over the view area size if, say, you have the BFH_SCALEFIT|BFV_SCALEFIT flags set.  You can limit the windowed view area but not the extent of the virtual space.  You may be able to place restraints on that windowed area using a ScrollGroup with SetVisibleArea()/GetVisibleArea().  In other words, you control the size of the GeUserArea with a ScrollGroup.  At least, that is how I think it may work.

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