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: Translucent Frames and moving windows



Ian Cheyne wrote:

I'll have a look at the Metal PLAF code to see what I can do for a
cross platform solution with regard to getting a nice palette window
decoration.

I had cause to revisit my code for this recently. The trick to getting smooth window drags seems to be using the Window's getLocationOnScreen method, rather than just getLocation (even though they *should* return the same value, there seems to be a difference WRT timing). This is what the Metal PLAF does, when I varied by using getLocation I got jerky drag behaviour.


I also tried just a simple 3-D rectangle fill for the title bar region, and that seemed to work well. It gave reasonable feedback when I set the "raised" parameter of Graphics.fill3DRect to false when dragging, and true otherwise. Filling the region with a texture map would be best, I think, but more work.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to 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.