Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 8:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Layers & Drag and Drop
PostPosted: February 21st, 2009, 1:41 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Hi,

I have a number of drag and drop images into a drop zone. Is there an automatic way so that the last object dropped is displayed on top of the others, currently their order follows the order in the objects list. Ideally the natural way the user would expect is that the last item be displayed on top.

I have tried to use the set to layer, but I cannot get this to work with each individual drag items.

Trigger: This Object Dropped All Objects
this.SetLayer(MoneyLayer++);

This was designed so when the drag image is dropped it would automatically set the layer above what was previously dropped. But I cannot get it to work.

Any suggestions.

UPDATE:
I have it working, but I have to click a button to set the layer to make it work, as having it set automatically for ObjectDropped, VariableChange, MouseOff and a few others just won't work. I can manually click a button that will work. Very strange, any ideas?



I would like the drag and dropped improved with more triggers. Will post this in the wish list, including more scripting to check dropped objects in a zone.


Top
 Profile  
 
 Post subject: Re: Layers & Drag and Drop
PostPosted: February 21st, 2009, 3:11 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
lmc wrote:
any ideas?


Just two.

1. if it ain't broke - don't wish for it to be fixed

2. viewtopic.php?t=3514

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 21st, 2009, 5:46 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Currently you cannot change the layer on drop, if you have the following code with i = 0 to begin with, then on drop each item is set to i++, so the object will display on top of the last. In theory this should work with the drop trigger of the object being dropped. With the following code: this.SetLayer(i++);

But I cannot get it to work, I can have a button and the following code on dropped object: ObjectDroppedName.SetLayer(i++);

This is the same code, but the dropped code seems to be implemented as the object is dropped, not after it being dropped. This is the only conclusion I can come to, as otherwise the original code used on the draggable object should work when dropped.

So any ideas?


Opus Pro v6


Top
 Profile  
 
 Post subject:
PostPosted: February 21st, 2009, 7:34 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
yes, I'd suggest you wait().

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 22nd, 2009, 1:53 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
I think so, cool thanks for reading Mack.

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group