Clear Editor View

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?

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

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

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

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 :)

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