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

    changing how push Button looks

    SDK Help
    0
    5
    387
    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 17/02/2015 at 12:44, xxxxxxxx wrote:

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

      ---------
      I'm adding a Button "DTYPE_BUTTON" in my plugin "MaterialData" using GetDDescription()
      what I wanted is to change how this Button looks "controlling width and height" , only found "DESC_FITH" which is what I want for width, but what about height? any method to specify it in pixels?

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

        On 17/02/2015 at 18:52, xxxxxxxx wrote:

        a follow up question which may be related, how to limit maximum chars in a string field "DTYPE_STRING"

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

          On 17/02/2015 at 19:40, xxxxxxxx wrote:

          Hi Mohamed,

          my experience with GetDDescription() is that if you want to control the size and positioning of anything, you're probably going to need to make your own custom gui. I've had to do this for some of my objects/elements that display in the AM. I've found GetDDescription() has very little control over sizes and positions etc.

          With regards to the string character limit - maybe try polling/testing character count in the SetDParameter() function?

          My meagre 2-cents!

          WP.

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

            On 17/02/2015 at 19:55, xxxxxxxx wrote:

            As WP notes, most of the nuanced or specific control of the interface is out the hands of plugin devs.  The basis for this is that the underlying system handles these specifics algorithmically based upon defaults and option criteria (sizes, positions, mins and maxs in some cases are more requests than requirements).  Either a custom gui control or use a GeUserArea and do the graphical, functional, interface coding yourself within it to accomplish something 'unique'.  You can basically do buttons as you like with bitmapbuttons and some finesse but other things will require more effort.

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

              On 18/02/2015 at 04:48, xxxxxxxx wrote:

              I was afraid of this "and expecting it too!!" , I guess I will handle all my GUI in a custom way, thanks for clarification guys.

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