Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    How to Highlight a Button

    Cinema 4D SDK
    python
    2
    2
    482
    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.
    • L
      Ling @ferdinand
      last edited by ferdinand

      @ferdinand and, do you know how to make a button hightight with a blue background like the attributes manager when selecting a panel?

      edit: Forked form Add a GUI Button (by @ferdinand)

      1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand
        last edited by ferdinand

        Hello @Ling,

        thank you for reaching out to us. Please remember to open a new topic of you own when you have a question and not to hijack other topics. The exception to that rule is when you have a question that aligns exactly with a currently ongoing topic. The reason we enforce this, is so that the form remains a nicely searchable knowledge base. I have forked your question for that very reason; it did not align with the other topic.

        About your question: It depends on what you mean by it. You cannot modify the background color of a Button element. What you can do, is create a LONG element and define QUICKTABRADIO as its custom GUI; here is how the muscle object in Cinema makes use of this GUI element:

        LONG ID_CA_MUSCLE_OBJECT_STATE
        {
            SCALE_H; ANIM OFF; PARENTCOLLAPSE;
            
            CUSTOMGUI QUICKTABRADIO;
                        
            CYCLE
            {
                ID_CA_MUSCLE_OBJECT_STATE_RELAX;
                ID_CA_MUSCLE_OBJECT_STATE_COMPRESSED;
                ID_CA_MUSCLE_OBJECT_STATE_EXTENDED;
            }
        }
        

        This will give you the tabs look as shown in many places in Cinema 4D. You will however need multiple elements to make this useful, as this is effectively an options group. What you could also do, is create a BITMAPBUTTON and then have different images for its normal and pressed stated.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

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