>Hi all,
>
>Here is an issue with the embedded vectorial drawing toolset of VFP.
>
>I am drawing on a bitmap displayed on a form. Lines, boxes and other stuff using the drawing capabilities of VFP. These primitives (line, box and al...) just suit me fine as the need is limited.
>
>This is all about setting boxes and lines with the mouse on a bitmap on screen (built up elsewhere within a powerfull graphic libraries). The API is fine and the display responsive. But I have a strong unexpected problem here...
>
>The vectors are drawn properly on the master sheet of this app ... But they tend to get WASHED OUT either fully either partially when an other form, typically a modeless dialog box) laying over the graphic stuff gets refreshed.
>
>Can these drawings stay properly onboard?
>
>Is there a way that could be used to get them redrawn properly? Via a method? I d not know exactly where to peek on these subject. This is quite an oldish question I suppose. Primitive UI questions as old as Mac Intosh and Window 2.1, I expect:)
>
>In the end, is this stuff - these gdi operation on screen - usable from within VFP?
>
>Kind regards to all of you. Any input welcome.
Any refresh of the form will basically clear anything that's drawn on the form (text, pixels, lines etc) and will then redraw the objects on the blank canvas.
If you want your graphics to persist, use graphic objects - line, shape. You can get an individual pixel by having a line with equal endpoints; circle with a shape with 100 (%) rounded edges. Ellipse may be a problem, not quite sure how to do that. Perhaps a shape drawn from array.