Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Register
    • Login

    Stop dialog resizing horizontally

    SDK Help
    0
    3
    893
    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 08/08/2018 at 14:25, xxxxxxxx wrote:

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

      ---------
         Is it possible to stop a dialog from being able to be resized horizontally? But still resizable vertically? I was sure there was a flag for this but can't seem to find it.

      I have a single UserArea in a dialog. I want it to be locked to a specific width but be able to be resized vertically. But at the moment its possible to resize the dialog horizontally leaving the UserArea sitting on the left hand side. This is an issue when docking the dialog into other managers, since the user has to manually keep dragging the splitter to make the dialog fit the user area again.

      The dialog is created via code, so I can't use the [SIZE] option from the resource description, which states in the docs that if you use a negative number it will be locked to that resolution. However I haven't found a way to set this flag successfully in C++.

      Thanks!

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

        On 09/08/2018 at 06:27, xxxxxxxx wrote:

        Hi Kent,

        I'm not completely sure I understand your request. Asynchronous (and thus dockable) dialogs in Cinema 4D need to be resizeable. Otherwise, I think, it would seriously harm the users ability to configure the layout to her/his needs. Based on the content they may have a minimal size, but to my knowledge that's it. Do you know of any dialog behaving differently, then I'll check the code for you.

        Regarding the negative size values in resource files, there's probably a misunderstanding. According to the documentation (Dialog Resource), these are just interpreted as pixel values instead of units relative to character width and line height.

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

          On 09/08/2018 at 15:46, xxxxxxxx wrote:

          Hi Andreas,

          I think that perhaps what I am after is simply not possible and that I was mistaken for thinking it was.

          Not a problem. Thanks Andreas!

          Kent

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