On 26/02/2014 at 19:09, xxxxxxxx wrote:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
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?
P.S. it doesn't need to fade in or out either
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.