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

    dialogs: add item to group

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 201 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 17/02/2009 at 12:52, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hi,

      Is there a way to add an item to a group other than a radiobutton, say a textfield to a simple group? On runtime?

      AddItem(id, subid, name) seems to be for selection fields only, is there a function for other types too?

      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 18/02/2009 at 00:34, xxxxxxxx wrote:

        AddItem() is only for radiobuttons, comboboxes, and popupbuttons. It adds selection elements to these.

        If you want to 'dynamically' add gadgets to a dialog group, you set up a group with a unique id (just a unique number - not a plugin id) and call a function that flushes the group gadgets, adds the gadgets, and notifies of the change. To do this, use a function like this:

        DynamicLayout(id)
        {
        LayoutFlushGroup(id)
        // Add gadgets
        // ...
        LayoutChanged(id)
        }

        Normally, I call this type of function from CreateLayout() inside the AddGroupBeginX(id,...) and AddGroupEnd() as well as when it needs to be updated (from events in Message(), Commmand(), etc.).

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