Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with FullScreenWindow



I've had similar problems under OS 9. My application switches a QTCanvas between a full screen window and a regular dialog and under keyboard control but at random points the full screen window goes catatonic and stops responding to the keyboard. Mouse clicks aren't the problem, they always continue to get through. I tried all sorts of hacks, even starting a thread to request focus after a delay, and although it pretty much works now I can't say I'm entirely happy with the code. I'd love to know just who IS getting the keyboard events once the full screen window loses focus and if I can trap the events there!

-Rolf

We've found the problem and it appears to be a problem with Java on X. If it
isn't fixed by the Java team we have a workaround for a Java update
(including QTJ that will also fix the dialog problem) that is soon to be
released.

If you need this before then, you should do a requestFocus on the window
after it is shown

Bill

on 8/1/02 9:27 AM, aNt wrote:

Ok.. This is a bit of a 'if nothing else works'

First off, 'implements AWTEventListener' on your FullScreenWindow and do
the:

Toolkit.getDefaultToolkit().addAWTEventListener(this,
AWTEvent.MOUSE_EVENT_MASK);

Or whatever (keyboard) add the:

public void mouseClicked(MouseEvent e) {
System.out.println("mouse was clicked");
}

To you class also..

Some will say 'NO!!' but then hay it works cool so sod um :) oh this looks
at every mouse click.

aNt


Thanks a lot for your help aNt,

Howevever, my code already used setVisible(true),
therefore this doesn't seem to be the problem. Any
other suggestions or sample code I could use to solve
>> this problem that is preventing me to get proper sleep
>> :-)
--
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.


References: 
 >Re: Problems with FullScreenWindow (From: Bill Stewart <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.