by Clifton » Tue Oct 11, 2016 9:45 pm
Unfortunately, once you use ToolBook's automatic dragging, it takes over the layering of the object. You may be able to affect the layering if you set a little timed delay using pgTBObjSet() to send a trigger or user event after say 200ms. Then set the layer using changeObjectLayer() with the trigger or user event of the object. Problem is that this may not be what you are looking for.
May be better to use createDraggableObject() to dynamically make the object draggable. The function allows you to manipulate the layer before or after dragging.