On 08/08/2018 at 14:25, xxxxxxxx wrote:
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++.
On 09/08/2018 at 06:27, xxxxxxxx wrote:
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.
On 09/08/2018 at 15:46, xxxxxxxx wrote:
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!