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

    Real slider won't fill up available space

    SDK Help
    0
    2
    225
    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 22/02/2014 at 06:44, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   13,14,15 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,
      the built in PoseMorph tag in C4D has no problems with this, the sliders fill up the available space.
      But my own plugin won't do this.
      If I have a Real Slider on its own, all is fine. But like the PoseMorph tag, I want to use a checkbox, a BOOL, to the left of the slider. As soon as I add this, the Real Slider shrinks and becomes very short.

      How can I make the slider fill up the available space? FWIW, I have tried several combinations with Layoutgroups etc etc

      CONTAINER Tfoobartag
      {
      	INCLUDE Texpression;
      	GROUP FOO_MAIN
      	{
      		DEFAULT 1;
      		COLUMNS 2;
      		BOOL FOO_BOOL{}  
      		REAL FOO_REAL {CUSTOMGUI REALSLIDER; UNIT PERCENT; MIN 0; MAX 100; MINSLIDER 0; MAXSLIDER 100; }
      	}
      }
      

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

        On 22/02/2014 at 14:11, xxxxxxxx wrote:

        Ok, finally I found the solution, by looking at a bunch of RES files, SCALE_H; will do the trick!

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