Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My drawings (boxes & circle..) are cleared!
Message
De
03/12/2011 08:29:21
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/12/2011 08:55:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01530168
Message ID:
01530282
Vues:
90
This message has been marked as the solution to the initial question of the thread.
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform