GeUserArea maximum size



  • 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



  • 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.


Log in to reply