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

    BFM_GETCURSORINFO

    SDK Help
    0
    2
    212
    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
      Helper
      last edited by

      On 26/02/2014 at 19:09, xxxxxxxx wrote:

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

      ---------
      Hi Folks,
       
      I've been using the BFM_GETCURSORINFO message for various things in my plugin, but one area I'm failing in is highlighting things. I can generally get it to do what I want, but I'm having troubles in un-highlighting. I'm aiming for something like the BitmapButtonCustomGui when they are moused over.
       
      I'm currently triggering the highlight by testing the mouse coordinates against the visible user area's space - i.e. is the cursor within the user area's boundaries, if it is, the highlight is drawn. But it's not being un-highlighted when the cursor leaves the user area as the BFM_CURSORINFO message is no longer called.
       
      So, what's the correct way in which to signal/trigger my highlight so that it works like the BitmapButtonCustomGui?
       
      Cheers,
       
      WP.
       
      P.S. it doesn't need to fade in or out either

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

        On 02/03/2014 at 16:01, xxxxxxxx wrote:

        OK I've managed to sort this one out I think. I wasn't aware that the cursor message would work in the dialog itself - I mistakenly thought it was for user areas only. So I'm now testing the cursor against the dialog elements dimensions and place in the dialog, and calling redraws etc as needed for the highlight/un-highlighting of my user areas.
         
        WP.

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