Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Clear Editor View

    SDK Help
    0
    6
    477
    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 05/11/2004 at 02:36, xxxxxxxx wrote:

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

      ---------
      I want to make a Tool Plugin which will span a rectangle on mousedrag, like the cinema rectangle selection does.
      It works fine to get the drag, position, and to draw the rectangle by DrawXORLine. But when the position changes, I have to draw a new rectangle, and the old rectangle with the old position should disappear. At the moment by dragging I get hundreds of rectangles...how can I clear all the things I drawed in an editor window?

      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/11/2004 at 02:55, xxxxxxxx wrote:

        If I do the draw of the line in the Draw function, then the editor will be cleared automatically before drawing. But there I cannot use the DrawXORLine, only MouseInput provides a pointer to EditorWindow

        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/11/2004 at 04:09, xxxxxxxx wrote:

          Hi,

          you need to draw the old rectangle again to remove it before drawing another XORLine (or in your case recangle). It´s kinda like toggling. 🙂

          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/11/2004 at 05:04, xxxxxxxx wrote:

            Gad, that brings back old memories of DOS graphics programming - once wrote a DOS GUI back in the day. 🙂

            Robert

            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/11/2004 at 05:46, xxxxxxxx wrote:

              *hehe* In fact I did, FastCopy, a copy tool like the famous VGACopy, 3D-Buttons with shadows and klick-effect under DOS....I still wonder how I ever made this stable, my main experience in programming at this time was from AmigaBasic, and this tool was tenthousands of lines in Pascal 🙂

              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/11/2004 at 11:55, xxxxxxxx wrote:

                I´m not that long with programming but I do remember my brother doing a lotta C64 BASIC stuff (he is now JAVA-C++ Programmer for Volkswagen...hmm, weird history *g* ) and the little sprites walking from one side of the monitor to the other, and it had loads of lines. 🙂

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