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: QTCanvas



i don't think that would work. i spent a lot of time trying this sort of
thing and eventually gave up. to be sure i just tried what you suggested and
it didn't work. if you can prove me wrong i'll be thrilled! and will gladly
eat my words.

you can acomplish some layering rendering your qt content in a
QTImageProducer but it elminates some interactivity from your movie. if you
have sprite or flash tracks then don't do it. there are lots of tricky ways
to deal with the issue and i've tried all of them i'm aware of.

rf

> Try using javax.swing.JLayeredPane. However you must take in mind, that
> lightweight components want draw upon heavyweight component. QTCanvas is
> heavyweight component, so if you want to add JTextFiled for example on top
> of QTCanvas it want show up.
>
> The workaround is first to add the lightweight component to some
heavyweight
> container like java.awt.Panel and then add the Panel to JLayeredPane.
> Something like this:
>
> QTCanvas qtc = .........;
> JLayeredPane layers = new JLayeredPane ();
> Panel p = new Panel ();
> JTextField f = new JTextField ();
>
> p.add(f);
> layers.add(qtc, new Integer (0));
> layers.add(p, new Integer (1));


References: 
 >RE: QTCanvas (From: "Simeon Kirov" <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.