Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Continuing where we left off. . . . shapes
Message
De
23/08/2005 11:07:37
 
 
À
23/08/2005 10:56:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01042777
Message ID:
01042951
Vues:
16
>The code works fine. Now I am trying to change the color and shape of the output. I have spent enough time looking at VFP help (which as usual is no help at all) and I have tried many ways to accomplish it.
>
>Here is one failed attempt of many.
>
>
>
>If nButton = 1
>	If Sys(1270)=m.this
>		Thisform.AddObject( Sys(2015), "shape",  Height = 25 , Width = 25, Curvature = 90, BackColor = 255, BackStyle = 0 )
>		With Thisform.Controls[thisform.ControlCount] && the last member
>					.Move(nXCoord,nYCoord)
>			.Visible = .T.
>		Endwith
>	Endif
>Endif
>
>
*The bad sketch of VFP:  
*SYS(1270) it can return. F. (correct choice is. NULL.)   
*EVL () it doesn't support the objects

If nButton = 1 AND VARTYPE(Sys(1270))=='O' AND Sys(1270)=m.this 
	Thisform.AddObject( Sys(2015), "shape") 
	With Thisform.Controls[thisform.ControlCount] && the last member
		.Move(nXCoord,nYCoord,25,25)
		.Curvature = 99
*	.BackColor = 255	&& TRANSPARENT !!!
		.BackStyle = 0
		.Visible = .T.
	Endwith
Endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform