Jump to content
JBenghiat

TrackHotSpot

Recommended Posts

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.

Share this post


Link to post

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 by Nicolas Goutte

Share this post


Link to post

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?

Share this post


Link to post
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.

Share this post


Link to post

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.

  • Like 1

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...