changeObjectLayer()

Help for using specific functions

changeObjectLayer()

Postby Kataleena » Tue Oct 11, 2016 8:43 pm

Hi,

I want to use changeObjectLayer() on a object that has been set to automatic dragging by TB and used with a Definable drop target, is this possible? I tried changeObjectLayer() in the "Mouse over" "on click" of the object but its not working.

Thanks Kate
Kataleena
 
Posts: 49
Joined: Sun Feb 23, 2014 10:05 pm

Re: changeObjectLayer()

Postby 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.
Clifton
Site Admin
 
Posts: 731
Joined: Tue Jan 14, 2014 1:04 am


Return to Function Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron