wxGenBitmapButton vs. SetDefault

Hi everybody,

I've played a little with wxGenBitmapButton, that's a fantastic tool, looks and tastes
same on Linux and Win.
It's dervied from wxControl class accordingly hasn't SetDefault method.(I
found that every wxPanel has a SetDefaultItem method, that accepts only
wxButton instance)

Is there any way to simulate this SetDefault behaviour with wxGenButton?

Thanks
  Atti

(When it will work I post it to the list.:slight_smile:

Szüts Attila wrote:

Hi everybody,

I've played a little with wxGenBitmapButton, that's a fantastic tool, looks and tastes
same on Linux and Win.
It's dervied from wxControl class accordingly hasn't SetDefault method.(I
found that every wxPanel has a SetDefaultItem method, that accepts only
wxButton instance)

Is there any way to simulate this SetDefault behaviour with wxGenButton?

Are you on the newest version? The SetDefaultItem now takes a wxWindow parameter, I think it was this way in 2.3.3 but I'm not completly sure.

···

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