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

    Clearing Edit Text Field When Clicked On

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 239 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 01/12/2007 at 12:44, xxxxxxxx wrote:

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

      ---------
      I'm trying to clear an edit text field when the user clicks on it. BFM_ACTION_ID doesn't report any actions in the text field until the user has started typing.

      I tried getting a combination of when the left mouse button was clicked + if the result cursor changed to an IBEAM, but that did not seem to work, either. Maybe I'm incorrectly detecting the change to IBEAM?

      Here's the code I'm trying there:
      BaseContainer state;
      GetInputState(BFM_INPUT_MOUSE, BFM_INPUT_MOUSELEFT, state);
      if(state.GetLong(BFM_INPUT_VALUE) == TRUE && state.GetLong(RESULT_CURSOR) == MOUSE_IBEAM)
      {
      //Clear the text field
      }

      I also tried continuously polling the mouse, but that did not work, either. I'm pretty sure I'm not detecting the mouse change correctly.

      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 01/12/2007 at 23:16, xxxxxxxx wrote:

        Nevermind. I solved my problem another way.

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