Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Draw lines
Message
De
28/03/2005 04:42:16
 
 
À
24/03/2005 14:23:27
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:
00999376
Vues:
19
hi,
i creat newform,
at newproperty i try to insert thisform.x.value=0 ,or just x= 0, i get invalid name.
i think i must put 3 text at my form as thisform.x.value,thisform.y.value and thisform.i.value. also nothing happend.
at timer procedure timer i put the code as under
any help.
with ThisForm
	thisform.i.value = thisform.i.value + 0.05
	thisform.x.value = thisform.i.value*100
	thisform.y.value = sin(thisform.i.value)*100 + 100
	.Line(thisform.x.value, thisform.y.value)
	if thisform.i.value >= 2*pi()
		This.Enabled = .F.
	endif
endwith
thanks
>>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
>
>.x is short for ThisForm.x. Similar for the other properties. (This is for a quick test only; in a real application, you would try to give your properties more meaningful names.)
>
>You create a form property with the menu command "Form | New property" (the form has to be opened first).
>
>>second how i can fill the line or any shape with colors
>
>I really never did this, but it would seem to me that you should draw shapes with the .Box() and .Circle() methods. You will have to change .FillColor() and perhaps .FillStyle().
>
>Also, you can make the line thicker. See .DrawWidth().
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform