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
    • Recent
    • Tags
    • Users
    • Login

    button states question

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 220 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

      On 01/10/2014 at 10:12, xxxxxxxx wrote:

      Is there a way to

      1. Change the state of a button from active to inactive so that it still shows but is "grayed" out?
      2. Is there a way to change a button's color? I tried the code below, but it just changes the color under the button.

      self.SetDefaultColor(MY_BUTTON, c4d.COLOR_BG, c4d.Vector(30.0, 10.0, 2.0))

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

        On 01/10/2014 at 11:58, xxxxxxxx wrote:

        To make inactive, use:
        GeDialog.Enable(gadget, enable)

        So for your example:

        self.Enable(MY_BUTTON, False)
        

        As far as the button goes, I don't think it's possible to change the button background color.

        -Joe

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