THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/01/2006 at 04:13, xxxxxxxx wrote:
Cinema 4D Version: 9
Language(s) : C++ ;
In my tool plugin i have to draw sth. depending on the mouse position on the editor.
so i use the GetCursorInfo() function to find out about mouseposition.
from this i want the editor to do a redraw.
this works with EventAdd() but then GetCursorInfo() is called on and on again... resulting in a loop.
How can i initialize a redraw without GetCursorInfo() beeing called?
or am i overlooking sth. ?
On 04/01/2006 at 12:58, xxxxxxxx wrote:
See if you use DrawViews instead of EventAdd
On 05/01/2006 at 01:37, xxxxxxxx wrote:
Thanks for the fast Answer, but it's no difference with DrawViews
I'd like to do something like the inbuilt highlighting of points when hovering over it.
Is there another solution for this than GetCursorInfo() ?
On 05/01/2006 at 03:23, xxxxxxxx wrote:
You need to look at SpecialEventAdd(EVMSG_UPDATEHIGHLIGHT) and draw only into the highlight pass.
On 05/01/2006 at 04:19, xxxxxxxx wrote:
thanks for this, that's working perfectly
On 26/08/2006 at 09:03, xxxxxxxx wrote:
Where exactly do you call SpecialEventAdd() in this case? I take it that you check for DRAWFLAGS_HIGHLIGHT in ToolData::Draw() to do the highlighting into the editor and return DRAW_HIGHLIGHTS. A simple, skeletal code example would launch fleets, armies, and victory parades...