Page 1 of 1

How to add mouse events to wxBitmap

Posted: Mon Dec 11, 2006 7:31 pm
by haroldjpa
Hello all

In wxdevcpp How to add mouse events to wxBitmap ?? ( doubleclick, mousemove, mouseup mousedown )



Hola Como hago para agregarle Eventos de mouse a el objeto wxBitmap??


Gracias

Re: How to add mouse events to wxBitmap

Posted: Tue Dec 12, 2006 7:48 am
by upCASE
haroldjpa wrote:In wxdevcpp How to add mouse events to wxBitmap ?? ( doubleclick, mousemove, mouseup mousedown )
You can't. wxBitmap is not a control that could receive events, but a representation of image data to be saved/loaded/drawn.
To do something like that you'll need to create your own control that handles this. Try here for a start: http://de.geocities.com/markusgreither/resizec.htm

Posted: Wed Dec 13, 2006 8:48 am
by upCASE
I forgot: Another option is using wxDragImage