Re: Drag with shadow
Re: Drag with shadow
- Subject: Re: Drag with shadow
- From: michael Stuurman <email@hidden>
- Date: Sat, 11 Aug 2001 00:03:00 +0200
On Friday, August 10, 2001, at 09:33 PM, Mike Davis wrote:
>
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)
Solution could be to copy the card (png with aplha channel) to an
irregular shaped window during dragging (see example on
developer.apple.com RoundTransparentWindow) . Using standard procedure
to recalculate the shadow of a window on aqua, will display it correctly
to the background & with the standard way of shadowing. And of course
copy back the card & remove the window when the operation is done.
Michael