Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

Statictext indentation

Author
Message
  Topic Search Topic Search
C4DS View Drop Down
Member
Member


Joined: 2015 Dec 01
Online Status: Offline
Posts: 235
Direct Link To This Post Topic: Statictext indentation
    Posted: 2018 Apr 27 at 12:29am

User Information:

Cinema 4D Version:   R19 
Platform:   Windows  ;   
Language(s):     C++  ;   

---------

Hi,

I am using a resource description which contains a text label as the heading of a group of gadgets, but I cannot seem to find a way to indent the statictext correctly, so it lines up with the rest of the gadgets.


CONTAINER Move_desc
{    
    NAME Move_desc;
   
    GROUP
    {
        COLUMNS 1;
       
        GROUP
        {
            COLUMNS 3;
           
            STATICTEXT LABEL { ANIM OFF; }
            STATICTEXT {}
            STATICTEXT {}

            BOOL CHECKBOX1 { ANIM OFF; }
            REAL EDIT { ANIM OFF; UNIT REAL; MIN 1.0; MAX 100.0; }
            STATICTEXT {} // filler
           
            BOOL CHECKBOX2 { ANIM OFF; }
            STATICTEXT {} // filler
            STATICTEXT {} // filler
           
            BOOL CHECKBOX3 { ANIM OFF; }
            BOOL CHECKBOX4 { ANIM OFF; }
            STATICTEXT {} // filler
           
            SEPARATOR {}
            STATICTEXT {} // filler
            STATICTEXT {} // filler
        }
    }   
}




The label always seems to be positioned too far to the left.


Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1878
Direct Link To This Post Posted: 2018 Apr 27 at 6:04am
Hi,

the Attribute Manager (or parameter descriptions) is not really about custom layouts. Do you have any evidence static text is used and aligned this way anywhere else in Cinema. Then I could do some research.
Otherwise I'd recommend to stay with C4D's standard design language and use a group bar instead.
Cheers,
Andreas
SDK Support Engineer
Back to Top
C4DS View Drop Down
Member
Member


Joined: 2015 Dec 01
Online Status: Offline
Posts: 235
Direct Link To This Post Posted: 2018 Apr 28 at 10:22pm
Oh, I didn't mean to imply to requiring custom layout.
The checkboxes 1 to 4 contain identical words in their names, as such I thought to be clever (and eco-friendly) by only mentioning those words once, as a static text kind of "header".

I didn't feel like using a group bar for this, as it would distract from the 5th checkbox. Which is on its own, but also would need to be seen as a group then. And for this single checkbox I surely didn't want to introduce a group bar.

As for the evidence of usage of static text elsewhere in Cinema 4D resulting in such ... sure, I did find some places where it's been used and resulting in the same strange unwanted indentation.
I understand the reason for this indentation (or the lack of), as it happens for buttons as well.

I think it is due to the fact that all other gadgets have an animation control in front of them, moving the text slightly to the right.
Static text and buttons don't have an animation control and don't require extra space in front, and as a result are thus shifted to the left, relative to the text of the ones with animation control.

For examples:
- set the Attribute Manager mode to "Project":
-- in the Project tab, the buttons are slightly shifted to the left in relative to the other entries
-- in the Info tab the middle gadgets from "File Format" to "Last Save Date" are all static text, and all are shifted to the left,
-- in the Dynamics tab, the top gadgets are buttons and static text, all shifted to the left, relative to the bottom gadgets, which all have animation controls.
- ...
- my most favorite one is the collider tag, as it exactly shows the same eco-friendly "header" I am trying to achieve ... namely the "Exclude Polys". It "groups" the buttons next to it, without it actually being a group or group bar.

OK, reading back the above it sounds a little mockery, which wasn't the intention at all.

But when I see all these places where this unwanted (un)indentation of static text happens, I guess it makes no sense of trying to fight against it. The (un)indentation is there, and it's on purpose.
Well, maybe not "on purpose", but it's the intended behavior, I mean.

This case can be closed, as there is no actual case.
Thanks for reading


Edited by C4DS - 2018 May 01 at 3:16am
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1878
Direct Link To This Post Posted: 2018 May 03 at 1:40am
Hi,

no worries about mockery. You are right about this indentation inconsistency. 
Cheers,
Andreas
SDK Support Engineer
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.