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

    Password Textbox in a PreferenceData plugin

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 509 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 03/01/2018 at 05:19, xxxxxxxx wrote:

      Hi there,

      we are using a PreferenceData plugin to extend the Preferences with our own settings. Now we need to have a password textbox. You know, the kind of textbox that only shows "*" instead of the actual characters.

      I ready from this forum that there is really no way to do that, is that correct? We can only achieve that using GeDialog::SetString(), but in a PreferenceData we don't have access to the underlying GeDialog?

      Is there any nifty way to get a password textbox into a custom preference pane?

      Thanks in advance for tips & hints!

      Cheers,
      Frank

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

        On 03/01/2018 at 22:12, xxxxxxxx wrote:

        a workaround would be to override SetDParameter/GetDParameter to return only "*" characters, not pretty but works reasonably well

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

          On 04/01/2018 at 03:34, xxxxxxxx wrote:

          Hi Frank,

          It's not possible to have a password EditText inside a description like a dialog. There's no way to pass EDITTEXT_PASSWORD flag to the underlying EditText.

          The workaround given by affa is a solution but has a limitation; the text content can't be updated while it's edited.

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