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

    DLG horizontal centering not working

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 336 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 03/11/2012 at 20:14, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R14 
      Platform:      
      Language(s) :

      ---------
      Hi Folks,
       
      I have the following text item in a dialog group:
       
      AddStaticText(DLG_LBL_Text, BFH_SCALEFIT|BFV_SCALEFIT|BFH_CENTER|BFV_CENTER,0,0,"Centre Text", BORDER_NONE);
       
      It scaled and centred vertically, but it's not centering horizontally. Nothing is centering horizontally. Why might this be?
       
      Regards,
       
      WP.

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 05/11/2012 at 09:22, xxxxxxxx wrote:

        Hi,

        You have to use BFH_SCALE|BFV_SCALE instead of BFH_SCALEFIT|BFV_SCALEFIT. Fit and center gadgets isn't possible.

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 05/11/2012 at 17:11, xxxxxxxx wrote:

          Thanks Yannick, that seems to have solved the problem.
           
          WP.

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 05/11/2012 at 21:32, xxxxxxxx wrote:

            Just another thing, how come the following group isn't sized correctly?
            GroupBegin(DLG_GROUP_CENTER,BFH_SCALE|BFV_SCALE|BFH_CENTER|BFV_CENTER,0,0,"",NULL,640,380);
            GroupBorderNoTitle(BORDER_THIN_IN);
            AddStaticText(DLG_LBL_CENTER, BFH_SCALE|BFV_SCALE|BFH_CENTER|BFV_CENTER,0,0,"Centre Group",BORDER_NONE);
            GroupEnd();
            I took a screen cap of the dialog into PS, and the black thin line around the group is 384 by 468?
            WP.

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 06/11/2012 at 03:25, xxxxxxxx wrote:

              Originally posted by xxxxxxxx

              Just another thing, how come the following group isn't sized correctly?
              GroupBegin(DLG_GROUP_CENTER,BFH_SCALE|BFV_SCALE|BFH_CENTER|BFV_CENTER,0,0,"",NULL,640,380);

              I think the group should be created with the flags BFH_SCALEFIT|BFV_SCALEFIT. Scale + fit ensure the group is scaled + resized automatically with the dialog.

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