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: Transparent WebView



On Apr 20, 2005, at 4:30 PM, Craig Hunter wrote:

OK, so Safari in 10.3.9 allows a transparent window (see the Debug menu),
which works nicely when you embed CSS formatting for background transparency
in your HTML:


    <STYLE type=\"text/css\">
    BODY { background-color: transparent }
    </STYLE>

I have an app with a transparent window, but all WebViews have an opaque
white background by default. Anyone know a way to force the WebViews to
have a transparent background so that full transparency can be realized?? I
assume that if Safari Can do it, any WebView should be able to support it as
well.

There's a WebView method that didn't quite make the API cut for 10.3.9/10.4, but (ssh!) you can get away with calling it:


    - (void)setDrawsBackground:(BOOL)drawsBackround;
    - (BOOL)drawsBackground;

Your mileage may vary.

    -- Darin

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

This email sent to email@hidden
References: 
 >Transparent WebView (From: Craig Hunter <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.