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

    CUSTOMGUI_TEXTURENAME

    SDK Help
    0
    4
    449
    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 19/12/2013 at 07:32, xxxxxxxx wrote:

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

      ---------
      I want to use the CUSTOMGUI_TEXTURENAME[URL-REMOVED]
      However I do not see the little arrow in front of the field and I do not see the icon of the selected texture. See below.
      I tried setting some sttings, but nothin works.
      What to do?

      	BaseContainer textgui;
          textgui.SetBool(FILENAME_TEXTURE, true);
      	textgui.SetBool(LINKBOX_HIDE_ICON, false);
          myTxtfile = (TexturenameCustomGui* )AddCustomGui(1010, CUSTOMGUI_TEXTURENAME, "", BFH_SCALEFIT, 0, 0, textgui);
      


      [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

        On 19/12/2013 at 13:17, xxxxxxxx wrote:

        Hi Pim,

        you can expand the widget by calling BaseCustomGui::SetLayoutMode(LAYOUTMODE_MAXIMIZED). You can
        get the address of the BaseCustomGui from GeDialog::AddCustomGui() or GeDialog::FindCustomGui().

        PS: The SetLayoutMode() method is not available in Python.

        Best,
        -Niklas

        EDIT: You need to call this after, not in, CreateLayout() (eg. InitValues())

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

          On 19/12/2013 at 23:17, xxxxxxxx wrote:

          Thanks, I'll give it a try and report back.

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

            On 19/12/2013 at 23:27, xxxxxxxx wrote:

            And it works!
            All I had to add was myTxtfile->SetLayoutMode(LAYOUTMODE_MAXIMIZED);
            Only the little 'fold' arrow is missing in front of the field, but perhaps I can 'simulate' that by using this same function.

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