Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Window focus
PostPosted: October 5th, 2006, 8:56 am 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Hey all.

I need some help with a project of mine. I have a fullscreen publication, with a transparent window on top of that. I use this transparent overlay window (allways on top) to show content, which doesnt refresh if a page changes in the main publication.

But the problem now is, that the overlay window seems to keep the focus. I need some keyboard-input into the main fullscreen publication, below the overlay window (which IS part of the publication). I cant seem to get that input to the main page, but the overlay keeps getting the input.

So i need a fullscreen page, which has the focus from the keyboard and mouse for input, and a windowed page, always on top for other content.

A workaround maybe is to get the input from the overlayed window to the main page ( with variables ? ). But can't find a way..

Any help is appreciated. Thanks!

Remy


For this message Reemski has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 5th, 2006, 1:54 pm 
Offline

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

I would suggest using the Master Pages feature. It would sure make things easier I think. :wink:

_________________
Cheers,
Steve


For this message Steve H has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Master Page Solution
PostPosted: October 5th, 2006, 2:23 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
Remy --

Using a Transparent Page, I don't believe you can do what you want.

Use a totally different approach: Use a Master Page set with "Objects from this page appear on top" and Hidden Objects with your Key Presses showing (Show) them and "Set a Variable" flag. You will need an "On Show" Trigger on the Master Page with an IF statement and a separate Variable for each Object you want to display using a Key Press to determine if an Object needs to be displayed.

When the first slave Page (using a Master Page) appears, no Hidden Object is seen. Do a Key Press to make the first Object visable (Show). This changes your flag Variable from "0" to "1" (they way I did it).

When you go to the second slave Page, your Objects would disappear UNLESS you use the On Show and IF statement with flag Variables.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


For this message demofred has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 5th, 2006, 2:27 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Could you use a layout to accomplish what you want?

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


For this message bwpatric has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 5th, 2006, 2:44 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Hi DemoFred.

I know i can accomplish this with an transparent overlaying window (always on top), because i already made this. This works, but the problem was that my main page, didn't react to my keyboard input anymore. That was now focused to the overlaying page.

I did this because the transparent ( it contains a overlaying frame with text) window contains an RSS reader, which shows the latest news.
I want this to show information, even if the main page changes to another page ( which it does very regularly).

I never thought of the layout function, but the overlay (rss) must only be shown after the publication had some idle time. So in the same presentation I need full pages, and pages with this rss reader in it. So using a certain layout is also not the solution (i think... )


I already have a solution.
On the overlaying transparent page, i used a EventTrigger, which sets a global variable to the key that was pressed.
On the pages that need user input, i set a "variabel changed" trigger. Then i evaluate the global variable, and can run actions (functions).

This way i transfered the keyPresses from that window with the focus, to the underlying page.

code from the transparent page:
Code:
/**
*   Keypresses
*    Deze functie zorgt ervoor dat de toetsaanslagen op het bovenliggende RSS window
*   doorgegeven worden aan de presentatie. De variabele glob_keyPressed veranderd:
*    In de pagina's kan dan de trigger 'on variable changed' gebruikt worden, om acties te genereren.
*/
RegisterEventHandler( 'keydown', keyPressed )   
function keyPressed(property)
{
   glob_keyPressed = property.key;
}


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


For this message Reemski has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 5th, 2006, 2:53 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Since you have a solution I'll just post another "thought". What if you "page" in a frame and then each page has no background, then you make your chapter your size to fit the window/resolution you want. That way you can place your objects outside of the frame/page and you would still be on the same page.

I know it sounds confusing, but perhaps it would work for you. For instance, I have a 1024x768 width specified for my chapter. On each chapter page, I have an 800x600 frame. This I will use as my display "page". I center this frame in the 1024x768 real page. This allows me to put things around it, and they can interact directly with the stuff in the frame since everything is still on the same physical page.

Just a thought.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


For this message bwpatric has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 5th, 2006, 2:54 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
@ steve

I use masterpages very intensively, but here, i need to keep the overlay running, while the main pages change..


For this message Reemski has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 5th, 2006, 2:57 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
BW patrick.

Do you mean u sort of 'import' transparent pages into a main page, which is bigger than the main page?? This might work too..


For this message Reemski has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 5th, 2006, 3:04 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Attached is a simple example of what I was talking about.


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

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


For this message bwpatric has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 5th, 2006, 3:28 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
This is a simple example i just made to demonstrate what i'm trying to make.


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


For this message Reemski has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Key Press?
PostPosted: October 5th, 2006, 3:44 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
I must have mis-read your initial question. I thought you wanted "Key Press" to work on your Pages.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


For this message demofred has been thanked by : mackavi


Last edited by demofred on October 5th, 2006, 3:46 pm, edited 1 time in total.

Top
 Profile Visit website  
 
 Post subject: Re: Key Press?
PostPosted: October 5th, 2006, 3:46 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
demofred wrote:
I downloaded your example, but didn't see any "Key Press" Triggers on any of the Pages. Wasn't that your original question?


That was my original question. This example was to make it more clear what i was trying to accomplish (basically)..

I will show the problem, and edit the example..
With the working solution i have now.


For this message Reemski has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 5th, 2006, 3:48 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Here's the same thing using the method I spoke of above.


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

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


For this message bwpatric has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 5th, 2006, 4:04 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Next example


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


For this message Reemski has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 5th, 2006, 4:08 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Thanks bwpatric,

I will look into that.
But you use a multi-frame as pages.
In my situation, i think that will be kinda hard, because i use different pages. One with fullscreen images / movies, some with a product-detail page ( multiple text fields, changing images), and some with product lists ( multiple images, textfields), and all the content dynamicly from a sql database.


For this message Reemski has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 69 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group