Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 5:11 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: constraining movement of dragged object within a frame.
PostPosted: August 31st, 2006, 2:02 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
I want to be able to drag an image object within a frame (Which is larger than the page) but I don't want the object to be dragged beyond the edge of the frame.
Similarly I want to be able to use use mouseover buttons to animate an image object by moving it horixontally, but I don't want it to move beyond the edge of its containing frame.
(This would be similar to the way an object can be made to bounce within its frame, but I want manual control of the dragging.)
any help appreciated...
thanks


For this message mac has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: September 1st, 2006, 11:02 am 
Offline

Joined: October 25th, 2004, 12:32 pm
Posts: 397
Location: Digital Workshop
Mac,

You can't stop the Opus's own drag and drop from going beyond the boundries of the frame. One option would be to create your own drag and drop as per the attached example. Once the object is clicked it moves to the position of the cursor, by adding a script to get the x,y positon of the object and then using some simple if statemnts it is possible to limit the movement of the object.

Regards

Brenden Knifton


You do not have the required permissions to view the files attached to this post.


For this message Brenden Knifton has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 3rd, 2006, 9:47 am 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Attached is another simulation of "Drag and Drop" containment within a Frame, using scripting. Hopefully someone better at scripting can improve on this, as there must be an easier way :?:


You do not have the required permissions to view the files attached to this post.

_________________
Cheers,
Steve


For this message Steve H has been thanked by : mackavi


Top
 Profile  
 
 Post subject: tanks for these examples, but
PostPosted: September 4th, 2006, 6:32 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
Thanks for the suggestions. I'll need to think about them a bit... I think I could make them work if I get my head around the x,y positions :D
My objective is to have an image which is larger than the page and a frame which is larger then the image, so the image can be dragged as if it were behind the page, with only a portion of the image visible on the page at one time.
Ultimately I want to be able to drag a very long horizontal panoramic image through an almost square page.


For this message mac has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: September 5th, 2006, 12:06 pm 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi mac,

The easiest thing to do, would be to create a frame the same size as the page, then insert the much larger image into that frame. Then add a horizontal scrollbar to the frame, so you could then scroll the long panoramic image. (see "Page 2" of the attached).

Another other way is by dragging the actual image using OpusScript. No Frame container is needed. (see Page 1) ...I've had an attempt, but the scripting needs more work. ;)

Another solution could be two large hotspots (see Page 3) -- just hold the mouse down and the image "moves" horizontally either way until it reaches its end.

The attached sample is a small page size sample.


You do not have the required permissions to view the files attached to this post.

_________________
Cheers,
Steve


For this message Steve H has been thanked by : mackavi


Top
 Profile  
 
 Post subject: spot on, thank you... I now have a range of options!
PostPosted: September 6th, 2006, 12:22 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
:D


For this message mac has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 34 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