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
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Dialogs, a beginner's problems

    Scheduled Pinned Locked Moved SDK Help
    22 Posts 0 Posters 13.7k 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

      On 01/07/2013 at 23:51, xxxxxxxx wrote:

      Couldn't read the whole thread so sorry if this has been claryfied before.

      You have to distinguish between descriptions and dialogs! Both (can) use resource files, but they
      look completely different! GetDDescription(), GetDEnabling(), etc. are methods that can be overwritten
      by a NodeData plugin. And NodeData plugins use descriptions.

      Originally posted by xxxxxxxx

      if(modeReadOnly)
      {
         AddStaticText(DLG_TEXT_SELECTED_FILE, BFH_LEFT, 400, 0, "", BORDER_THIN_IN);
      }
      else
      {
          AddEditText(DLG_TEXT_SELECTED_FILE, BFH_SCALEFIT, 0, 0);
      }
      

      If you want to disable dialogs elements, you can use the Enable() method of the GeDialog class.

      If you want a specific region in your dialog to be dynamic, you can use LayoutFlushGroup() to
      remove all the elements in a specific group and move the widget-insertion-pointer directly into
      this group.

      I almost always use resource files.

      -Niklas

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

        On 02/07/2013 at 00:04, xxxxxxxx wrote:

        Originally posted by xxxxxxxx

        If you want to disable dialogs elements, you can use the Enable() method of the GeDialog class.
        If you want a specific region in your dialog to be dynamic, you can use LayoutFlushGroup() to
        remove all the elements in a specific group and move the widget-insertion-pointer directly into
        this group.
        I almost always use resource files.

        Great, I was not aware of this.
        I also use resource files for tags, but for this modal dialog, I found dynamic creation of elements to be perfect.

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