Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 30 Jan 2010 14:25:37 +0100
However, it makes life more complicated. If you use
TextOut() you already have to know where your want to place the text (i.e. it's x,y-coordinates). So, the way to go here is, to draw them somewhere and use the attribute "hidden=true") and later to move them to the appropriate location.
Another problem here is, that if u use TextOut the layer is created immediately. So you may have the problem that "groups of layers" appear behind another "group of layer" which may be not intended, and hence, the group of layers is hidden then.
So, therefore, I have feature request:
I'd like to have something like:
1) LayerToFront(LayerID) -- which brings a layer to top without the need to swap the position with another layer (like in SwapLayer()).
and
2) InsertLayerBehindOf(LayerID-a, Layer-b) or InsertLayerInFrontOf(LayerID-a,LayerID-b) --- which means, to insert a layer behind/in front of layer b and shift all other layers appropriately, such that the relative order of all layers (but LayerID-a) is not effected.
The available function "SwapLayer()" is not very useful for this task because it exchanges the position of two layers and that makes it difficult to bring a certain number of layers to front without permutating the order of these layers.
There's also already a function "
InsertLayer()" but that only works with type BRUSH, ANIM and something else, but not with an already existing layer.
Thanks, Tom