Brendan Chen 943434 Posted December 18, 2011 at 08:50 PM Posted December 18, 2011 at 08:50 PM Hi all, I have came across a problem in my ES plugin development. Simply put, I would like to click on a tag item (all coded, not generic TAG editor) which activates a function that allows me to move my mouse anywhere (with a line linking the AC and cursor). When I click again, the heading from AC to my clicked point (cursor) is calculated and set as [Mod - Happy Thoughts]ignedHeading. Just want to ask, how could I do that? If I have not mistaken, there should be some internal function which activates a purple line between the AC and the cursor. Or could even be further as to automatically sets the [Mod - Happy Thoughts]ignedHeading? Cheers, Brendan Chen VATPRC Tech Support You make the difference! Link to comment Share on other sites More sharing options...
Gergely Csernak Posted December 21, 2011 at 07:56 PM Posted December 21, 2011 at 07:56 PM Brendan, Actually that feature has been already implemented in the beta. You can drag and drop that TAG item itself. There is no function that draws the rubber line for you. When you are dragging anything and you need to refresh the screen then call the CRadarScreen :: RequestRefresh function. That invalidates the screen and calls back with the CRadarScreen :: OnRefresh. There you have a HDC object to draw the line by yourself. Then do it again when the mouse is moved to another place. Gergely. Gergely. EuroScope developer Link to comment Share on other sites More sharing options...
Recommended Posts