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

    Align button on top in *.res file

    SDK Help
    0
    5
    683
    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 28/08/2017 at 01:15, xxxxxxxx wrote:

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

      ---------
      Hello.

      I have tried using ALIGN_TOP; on a button properties but it appears it is not recognizable in a *.res file.
      Can I align a button on top of the group it belongs ?

      Thank you for your time.

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

        On 28/08/2017 at 09:28, xxxxxxxx wrote:

        Hi,

        we are talking about a Dialog resource (not a parameter description resource), right?
        In this case I had expected ALIGN_TOP to be the default behavior without even being specified. At least that's the result of a very quick test.
        Can you maybe provide us with a resource file you are having the problem with?

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

          On 29/08/2017 at 00:00, xxxxxxxx wrote:

          Hello Andreas.

          I need to use align a button to the top in a parameter description resource.
          Dialog res supports ALIGN_TOP but description res doesn't.
          I need it in description.

          Thank you.

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

            On 29/08/2017 at 07:58, xxxxxxxx wrote:

            I'm afraid I don't understand.
            In general the layout in Attribute Manager is handled internally by the Description CustomGUI. Compared to dialogs you only have very limited means to influence the layout. Actually only Layout Groups and their columns.
            But now, here's the part I don't understand. For me a button in a description resource automatically aligns to the top. Maybe you should give us some insight, I guess the relevant part of your resource file and a screenshot would help.

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

              On 29/08/2017 at 12:15, xxxxxxxx wrote:

              Hello Andreas.

              Consider a group with Columns 2 (description res file). It contains only a shader and a button (in the same row). Once you set the shader, the height of the shaderlink parameter is extended. Then, the button is aligned in the center.

              Thank you for your time.

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