Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting object collisions
Message
De
28/09/2005 10:05:22
 
 
À
28/09/2005 09:14:19
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01053875
Message ID:
01053934
Vues:
6
>Imagine the user just designed his screen and now he saved. No problem so far. The controls would be saved in a table >>(positions, sizes, formats, fonts, etc). But how can I save the relations between them? Z Order I mean.

ZOrder is current Controls/Objects index.

A start point ( with array )
* save
dimension aZorder[container.ControlCount]
for i=1 to ALEN(aZorder)
  aZorder[i]=container.controls[i].name
next
save(@aZorder)

* restore

dimension aZorder[1]
restore(@aZorder)

FOR i=1 to alen(aZorder)
  WITH getpem(container,aZorder[i])
     .ZOrder
  ENDWITH
NEXT
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform