How is a Frame/Window Faded in/out?

This is very cool. Thanks for the help!

Mike

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Monday, May 07, 2007 5:03 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] How is a Frame/Window Faded in/out?

Mike Driscoll wrote:
> Hi all,
>
> This is hopefully a simple question. I would like to implement
> something like Outlook's little dialog window that fades in
and then
> back out whenever I get a new email. I can't seem to find
the correct
> terminology for this effect to google it. All I could find was some
> javascript that cycled through 8 images with different
alpha blending, I think.
>
> What is the best approach for this kind of thing? I am on
Windows XP
> SP2, with Python 2.4 and wxPython 2.8.

http://wiki.wxpython.org/Transparent_Frames

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Mariano Di Felice wrote:

Hi,
   my question is:
when I click on an object ( in my case, an image ) and I drop it into a container, I will see cursor with "+" element, that it will be wx.DragCopy

How can I substitute it with a small image? When I right-click down and motion it into another object, I want see a small image in place of wx.DragCopy object ( "+" ).

There are two approaches to try. First you can specify an icon or a cursor (depending on platform) when you create the wx.DropSource object. Second you can derive a class from wx.DropSource and override the GiveFeedback method. In that method you can do whatever you like, such as draw a small image on the screen near the current location of the mouse cursor.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!