Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting object collisions
Message
 
À
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:
01053908
Vues:
11
I think you have to track the z-order on the fly.
The objects in a container are ordered from back to front in the order they are defined.
When an object is sent to back or front at runtime, the original order is not affected.
So the next time you run the form, the same order will appear.

From your email (for the lurkers):
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.


You have to track the calls to "Bring to front" and "Send to back" with the rest of the information in the table.
I suggest that you add a "zorder" column to store an index that you can use to create your screen in the right zorder at runtime.

Good luck :)

>Hey, thanks Gerald, I did not know if you were online.
>
>BTW, I send you an email to ther address of the example, wich is dated from 1998 so I don't know if still exists.
>
>Anyway, how can I save the zorder of the objects being placed?
>
>Thanks!
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform