Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Redraw Message in ToolPlugin

    SDK Help
    0
    6
    48
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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:

      User Information:
      Cinema 4D Version:   9 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hey there,
      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. ?

      thanks 🙂

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 04/01/2006 at 12:58, xxxxxxxx wrote:

        See if you use DrawViews instead of EventAdd

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          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() ?

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 05/01/2006 at 03:23, xxxxxxxx wrote:

            You need to look at SpecialEventAdd(EVMSG_UPDATEHIGHLIGHT) and draw only into the highlight pass.

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 05/01/2006 at 04:19, xxxxxxxx wrote:

              ah, great 🙂
              thanks for this, that's working perfectly 🙂

              greets,

              affa

              1 Reply Last reply Reply Quote 0
              • H
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                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...

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post