Align button on top in *.res file
-
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.
-
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? -
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.
-
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. -
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.