JBenghiat Posted November 3, 2020 Share Posted November 3, 2020 Is anyone using TrackHotSpot? I can successfully create hotspots and see the appropriate tool tip when I hover over them, but, at least in the GetCursorSpecifier event, running TrackHotSpot always returns NULL when I hover over the hot spot. Quote Link to comment
Nicolas Goutte Posted November 3, 2020 Share Posted November 3, 2020 (edited) Yes, we use both. However we do not take care of the return value of TrackHotSpot but use the CParametricHotSpot that is passed as parameter reference. Edited November 3, 2020 by Nicolas Goutte Quote Link to comment
JBenghiat Posted November 3, 2020 Author Share Posted November 3, 2020 Thanks @Nicolas Goutte. I took at look at the CParametricHotSpot classes, but I don't think they are doing anything fundamentally different than what I am doing. Would you mind sharing more on how you are implementing hot spots, either here or off list? Quote Link to comment
Pat Stanford Posted November 3, 2020 Share Posted November 3, 2020 Hopefully here. :-) Quote Link to comment
Nicolas Goutte Posted November 4, 2020 Share Posted November 4, 2020 14 hours ago, JBenghiat said: Thanks @Nicolas Goutte. I took at look at the CParametricHotSpot classes, but I don't think they are doing anything fundamentally different than what I am doing. Would you mind sharing more on how you are implementing hot spots, either here or off list? Sorry, the code we use is shared between many classes (especially to be testable). And I was not the one who has written it, so I cannot make a small example out of it. Quote Link to comment
JBenghiat Posted November 14, 2020 Author Share Posted November 14, 2020 My issue seemed to be that I was calling TrackHotSpot() in the same event as when I created the hot spots. Calling during HandleComplete() is working for me. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.