I would like to be able to change the z-order of FP Objects programmatically. For starters, I envision the following properties:
- Layer - Explicitly sets the z-order layer in which an object resides.
- Promote/Demote - Implicitly sets z-order layer by -1 or +1 (assuming Layer 0 is frontmost)
- Send to Back/Send to Front - Explicitly sets z-order to the foremost or rearmost layer
- (Optional) Container property "Layers" - Returns an array of all layer indices currently in use by the container (Page, Panel, Cluster, etc.)
- (Optional) Container method "Layer.Objects" - Returns array of references to all objects on a layer
Question at this point: can more than one object reside on a layer, or should each object represent a discrete z-order? Does changing the z-order of one object likewise affect the z-order of other objects? Discuss in the comments.
Unfortunately, we ran into issues with rearranging the Z-order of controls at run-time, and have decided to pause development of this feature.