Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting object collisions
Message
From
28/09/2005 10:05:22
 
 
To
28/09/2005 09:14:19
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01053875
Message ID:
01053934
Views:
5
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform