• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Text with translucent Background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text with translucent Background


  • Subject: Re: Text with translucent Background
  • From: Graham Cox <email@hidden>
  • Date: Wed, 9 Apr 2008 21:43:40 +1000

How are you drawing the text? If it's in a NSTextView you also need to set the background colour of the view to clear, I believe, and maybe you'll need to override the IsOpaque method to return NO.

(I'm not that sure of myself here but I seem to recall something along these lines).


------ S.O.S.

On 9 Apr 2008, at 9:31 pm, email@hidden wrote:
Dear All

I am trying to set the background colour of a range of text in textview to a color with an alpha value less than 1.

I get the text storage and set its NSBackgroundColorAttributeName attribute (through NSMutableAttributedString calls) to a colour with an alpha value less than 1.
However when this background draws it draws the colour as solid and as I decrease the alpha value( towards 0.0 ) the colour goes towards black.


Any suggestions

Thanks
Fred


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Text with translucent Background
      • From: email@hidden
References: 
 >Text with translucent Background (From: email@hidden)

  • Prev by Date: Text with translucent Background
  • Next by Date: Re: Beginner TableView Questions
  • Previous by thread: Text with translucent Background
  • Next by thread: Text with translucent Background
  • Index(es):
    • Date
    • Thread