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

    area size callback

    SDK Help
    0
    3
    443
    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
      Helper
      last edited by

      On 09/11/2017 at 06:43, xxxxxxxx wrote:

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

      ---------
      Hello.

      I have a GeUserArea in a GeDialog.
      Since hte user area is scalable, I need to know its size every time the dialog is resized. So, I listen to BFM_SIZED in dialog's Message(....).

      But, the very first call of BFM_SIZED message occurs before dialog's InitValues meaning I get 0 area size.
      It this normal ?

      Thank you.

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

        On 10/11/2017 at 02:27, xxxxxxxx wrote:

        Hi,

        can you please explain, why you need to listen to BFM_SIZED in the dialog? Actually implementing GeUserArea::Sized() should be enough.

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

          On 10/11/2017 at 02:38, xxxxxxxx wrote:

          According the original question from op. Sized() also return 0 the first time. But for me is not an issue, it's pretty logical.

          Since at the start everything is nothing. And if you care about size that mean you are doing some dynamic thing, so you can check if it's not zero or simply do not care and your algorithm for dynamic things will handle it very easily ! 🙂

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