Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 12:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Stop clicks through frames
PostPosted: October 17th, 2013, 3:10 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
I'm trying to create a window/desktop environment. All is working fine apart from the layer order.
Attached is an example so you can see what I mean. If you load it, then click the box, you'll see the wrong one comes to the front.
It seems that the lower window is always clickable through the other windows no matter what I do (stop clicks through doesn't seem to work either.)
Any suggestions? (before I script it all from scratch!)
Thanks


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


For this message jezjones29 has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Stop clicks through frames
PostPosted: October 17th, 2013, 4:41 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
SetLayer only affects the visibility of objects not the events.

You'll have to script a solution.

@imsmackavi

_________________
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: Re: Stop clicks through frames
PostPosted: October 18th, 2013, 9:48 am 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
ok, thanks. I don't know how to do that - any clues?


For this message jezjones29 has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Stop clicks through frames
PostPosted: October 18th, 2013, 2:05 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Jez,

The basic principle is that you have to track what z-order the objects are displayed in on screen. This would mean storing that information in an array that gets updated each time you then bring a new window to the front.

If the objects then overlap, you need to catch the mouse pass through event on each object and check which objects are overlapping and which one has the highest z-order and thus is on top. Because Opus' in build actions will override the script, you'll then need to code a drag and drop rather than use the in-built functionality - so that you can specify the top object to move and maintain the appearance of being above the others.

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: Re: Stop clicks through frames
PostPosted: October 18th, 2013, 2:36 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
ok, got it. Custom drag and drop, store z in array.

Thanks


For this message jezjones29 has been thanked by : mackavi


Top
 Profile Visit website  
 
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 31 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