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

    GeUserArea - RemoveLastCursorInfo not compatible with ActivateFading

    Cinema 4D SDK
    c++ r19 r20 r21
    2
    3
    406
    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.
    • C4DSC
      C4DS
      last edited by

      Hi,
      A few years ago I created this topic:
      https://developers.maxon.net/forum/topic/9969/13422_detect-leaving-userarea
      related to detecting the mouse leaving a GeUserArea. Andreas brought up the perfect solution of using RemoveLastCursorInfo and a callback.
      I have been using this solution ever since.

      However, recently I have been looking into the ActivateFading and have discovered that while both functions work correctly on their own, as soon as you use both the RemoveLastCursorInfo's callback is never called.

      I do have a workaround for detecting leaving the userarea, using the BFM_FADE as described in the linked topic, but as mentioned it isn't without flaws.
      With that said, I just wanted to bring up the issue / limitation regarding using ActivateFading and RemoveLastCursorInfo together.

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by

        hi,

        ActivateFading is also using RemoveLastCursorInfo internally.
        The last to be called should win.

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        C4DSC 1 Reply Last reply Reply Quote 0
        • C4DSC
          C4DS @Manuel
          last edited by

          @m_magalhaes said in GeUserArea - RemoveLastCursorInfo not compatible with ActivateFading:

          ActivateFading is also using RemoveLastCursorInfo internally.

          I more or less assumed this was the case.
          As such I went with an alternative solution using RemoveLastCursorInfo to be able to detect the mouse leaving the GeUserArea, while providing an own implementation for fading in and out.

          Thanks for confirming.

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