Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Draw lines
Message
De
24/03/2005 03:37:30
 
 
À
20/03/2005 06:30:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Divers
Thread ID:
00997659
Message ID:
00998772
Vues:
14
hi,
thank you som much,
i try your code it works,

but i need your help with 2 things.
first .what you mean or how i can Create form properties .x = 0, .y = 0, .i = 0, && i miss understand

second how i can fill the line or any shape with colors
thanks.
>I forgot to mention; for a quick test (experiment), I put all the code in Form.Init(). Of course, you will have to decide eventually when you want to execute the code, for example, in a Button.KeyPress(), or with a Timer.
>
>Here is another example, with a Timer, which will draw the sine curve slowly.
>
>Create form properties .x = 0, .y = 0, .i = 0, and place the following code into the Timer.Timer Event:
>
>
>with ThisForm
>	.i = .i + 0.05
>	.x = .i*100
>	.y = sin(.i)*100 + 100
>	.Line(.x, .y)
>	if .i >= 2*pi()
>		This.Enabled = .F.
>	endif
>endwith
>
>
>I know, it is not perfect; this is just a quick sample. I'll leave the details to you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform