• 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: Drag with shadow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag with shadow


  • Subject: Re: Drag with shadow
  • From: "Mike Davis" <email@hidden>
  • Date: Fri, 10 Aug 2001 15:33:47 -0400

> Message: 14
> Date: Fri, 10 Aug 2001 18:18:03 +0200
> Subject: Drag with shadow
> From: jean-michel daix <email@hidden>
> To: <email@hidden>
>
> Hi,
>
> First I want to thanks all of you, helping me ! It's a long way to go
from
> carbon programming to cocoa. But I will.
>
> My question today is about draging a picture. To give you an example,
just
> like when you drag a card in a solitaire card game. I know how to move my
> picture, but I want a shadow under it.
>
> What do you think is the best way to do this ? Use a picture with an
alpha
> channel for the shadow and draw my image on top ? Use a windows with my
> picture in it and use the shadow drawn by aqua ? A better way ? (may be
> something for this exist in aqua)

I'd certainly draw into a NSBitmap and drag that around, using drag and
drop. The shadow is a bit trickier... if you have a standard shape for the
image, like the rectangular shape of cards in solitaire, you could just
make a bitmap with a shadow ramp on two edges (in Photoshop for instance).
You could then merge this into the bitmap you're producing for drag and
drop.

>
>
> -----------------------------------
> jean-michel daix / email@hidden
> Sorry, I9m French !
>
> visit <http://www.adforum.com>


  • Prev by Date: Re: Attaching windows
  • Next by Date: Re: Programatically Designing a GUI
  • Previous by thread: Re: Drag with shadow
  • Next by thread: Re: Drag with shadow
  • Index(es):
    • Date
    • Thread