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
    • Recent
    • Tags
    • Users
    • Login

    Add element to GeDialog Group

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 463 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 19/09/2008 at 12:19, xxxxxxxx wrote:

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

      ---------
      Hi!

      is it possible to add an element to a dialog group, even if the dialog is created?

      thanks 🙂

      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 19/09/2008 at 16:39, xxxxxxxx wrote:

        Yes. Use LayoutFlushGroup() and LayoutChanged() as bookends to a group you want to change. Don't call CreateLayout() though. Have CreateLayout() call a method that does the group element setup between the GroupBegin()/GroupEnd() of the group that will be changed. Have another method called to do later flushes and resetting (LayoutMyGroup() in this case) :

        //*---------------------------------------------------------------------------*
        Bool CreateLayout()
        //*---------------------------------------------------------------------------*
        {
             ...
             GroupBegin(GROUP_MYGROUP,BFH_SCALEFIT|BFV_SCALEFIT,0L,2L,String(""),0L);
             {
                  CreateMyGroupElements();
             }
             GroupEnd();
             ...
        }
        // Relayout MyGroup
        //*---------------------------------------------------------------------------*
        void LayoutMyGroup()
        //*---------------------------------------------------------------------------*
        {
             LayoutFlushGroup(GROUP_MYGROUP);
             CreateMyGroupElements();
             LayoutChanged(GROUP_MYGROUP);
        }
        // Create MyGroup Elements
        //*---------------------------------------------------------------------------*
        void CreateMyGroupElements()
        //*---------------------------------------------------------------------------*
        {
             AddButton(blah, blah);
             ...
        }

        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 19/09/2008 at 17:07, xxxxxxxx wrote:

          Hi kuroyume0161,

          thanks for your reply. Yes, I tried it and it works, do you have an idea how to add a element without deleting the content of the group?

          I would like to have an insertion point at the end of the group without deleting the elements before.

          Bye 🙂

          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 19/09/2008 at 17:23, xxxxxxxx wrote:

            Use a group around just that element. You can do this with any group and there really isn't much penalty for things like lots of groups with one or few elements in each. 🙂 Even an empty group at first can be filled or emptied as needed. As you can see, the only thing required is a group ID for reference.

            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 20/09/2008 at 02:22, xxxxxxxx wrote:

              Hi!

              Thanks, thats a goood idea. thanks ..

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