[OGL] Event Handler and Composite shapes
Matthieu Brucher
matthieu.brucher at gmail.com
Fri Jun 29 00:51:59 PDT 2007
Some other inquiries :
- the events can be processed by a shape inside the composite shape.
- it's not possible to overload the event methods so as to change the
behaviour
That last point is really strange for me. I assumed that overload
onRightClick would make my method to be called on a right click, but the
original method is still called !
Matthieu
2007/6/28, Matthieu Brucher <matthieu.brucher at gmail.com>:
>
> Has someone tried this code ? On Windows, the same happens, and analyzing
> the CompositeShape code didn't tell me why this occurs...
>
> Matthieu
>
> 2007/6/25, Matthieu Brucher < matthieu.brucher at gmail.com>:
> >
> > Here is a "small" sample :
> > A simple rectangle shape is drawn on the canvas, with a custom event
> > handler, everything works fine, a click prints "test" on the console
> > A composite shape with a text is drawn, the composite shape has the same
> > custom handler, clicking on the shape does not print "test"
> >
> > Matthieu
> >
> > 2007/6/25, Matthieu Brucher <matthieu.brucher at gmail.com >:
> > >
> > > Hi,
> > >
> > > I'm trying to use a composite shape on a canvas, with special events
> > > handling, like gobal selection, double-click for un popup, stuff like=
that,
> > > and I'm trying to derive from EvtHandler.
> > >
> > > Is there a reason why the events can't be handled by a custom handler
> > > ? If I use a recangle shape, everything is fine, when I'm using the s=
ame
> > > handler with a composite shape and some constraints for sub-shapes, no
> > > events are processed by the composite shape :(
> > >
> > > Matthieu
> > >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200706=
29/a952e912/attachment.htm
More information about the wxpython-users
mailing list