I need to position at all time a target shape in the very middle of the screen,
I know how to position a shape, and attach an icon to it,
But is there a way to just draw a circle (drawcircle), then erase it and redraw every time after pan ?
I tried to just ClearDrawing(), but was surprised to see all my labels cleared as well !!!
I am working in a real time project, no time to redraw them all (takes more than one second, 120000 of them)
Any way around, or should I stick with my icon as plan B ?
I believe that ClearDrawing will clear both Labels and Drawings for the specified layer, whereas ClearDrawingLabels will only clear the Labels. It doesn’t look like you can clear everything but the labels.
However, you should be able to place your drawing and your labels in separate ‘drawing’ layers (with separate calls to NewDrawing), in which case, when you clear the drawing for the one layer, it will not clear the labels of the other layer.
Absolutely right, this solves my problem 100% ! Thank you !
(sorry I’m a newbie, don’t know if I have to close solved topics, don’t know how anyway)
Thanks, again,