[wxPython-users] Animated Gif as Button
Ben Harling
benjamin.harling at futurenet.co.uk
Wed Aug 2 08:42:00 PDT 2006
Done it, thanks again Robin, sorry to clutter up the mailing list.
Code:
Self.AdBanner.Bind(wx.EVT_LEFT_UP, self.AdBannerClicked, self.AdBanner)
So simple... !
-----Original Message-----
From: Ben Harling [mailto:benjamin.harling at futurenet.co.uk]
Sent: 02 August 2006 16:18
To: wxPython-users at lists.wxwidgets.org
Subject: RE: [wxPython-users] Animated Gif as Button
Thanks Robin, Apologies, but how do I do that? ( my noobness is now properly exposed..)
-----Original Message-----
From: Robin Dunn [mailto:robin at alldunn.com]
Sent: 02 August 2006 16:13
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] Animated Gif as Button
Ben Harling wrote:
> Aha, yes. I can display the animated gif, but I need to register when
> the user clicks it, I cant seem to find any method to do this. You
> cannot use an wxGifAnimationCtrl with a bitmap button. I have looked
> into using Rect.inside(mouseClickLocation) but it seems there must be
> a better way to do it. I have also tried placing an emtpy bitmap
> button below the animated gif, but the bitmapButton wont receive
> clicks... :(
>
Bind the mouse events to the GifAnimationCtrl and implement your own button-like behavior.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please reply to this email and then delete it. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Future.
The recipient should check this email and any attachments for the presence of viruses. Future accepts no liability for any damage caused by any virus transmitted by this email.
Future may regularly and randomly monitor outgoing and incoming emails and other telecommunications on its email and telecommunications systems. By replying to this email you give your consent to such monitoring.
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please reply to this email and then delete it. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Future.
The recipient should check this email and any attachments for the presence of viruses. Future accepts no liability for any damage caused by any virus transmitted by this email.
Future may regularly and randomly monitor outgoing and incoming emails and other telecommunications on its email and telecommunications systems. By replying to this email you give your consent to such monitoring.
More information about the wxpython-users
mailing list