Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    GeModalDialog dynamic refresh

    SDK Help
    0
    2
    40
    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

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

      On 06/10/2005 at 03:41, xxxxxxxx wrote:

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

      ---------
      Hi,

      i want to change the content of some comboboxes depending on actions happening in the dialog. So i call the CreateLayout() functions after i made some changes in the Command() function.
      The combobox now gets a new Item(it works).
      -->The problem is, that the content of comboboxes multiplys with the content before.
      Example:
      Content: "1"->Add new Item "2" in Command(), call CreateLayout()
      -->Content: "1","1","2"
      -->addNewItem "3"
      Content: "1","1","2","1","2","3"
      ....

      I hope you could understand the problem.

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

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

        On 06/10/2005 at 11:56, xxxxxxxx wrote:

        CreateLayout() should never be called by your code. It is automatically called when the dialog opens (once and that is it).

        If you need to make changes to dialog elements, use the methods in GeBaseDialog. For a ComboBox, use FreeItems() to remove the current list and AddItem() to put new ones in. Some others need LayoutFlushGroup() and LayoutChanged() - such as when adding/removing elements to the dialog.

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