WxMac : Right-click on wxBitmapButton

Stefan Csomor csomor at advancedconcepts.ch
Mon May 21 23:45:50 PDT 2007


Hi

> I have a wxBitmapButton in a toolbar, and I use the EVT_RIGHT_UP
> event, so that right-clicking on that bitmap button opens a
> contextual
> menu.
>
> But since wxMac-2.8.0, this bitmap button doesn't react to right-
> clicks anymore...
>
> Can anyone tell me what's going on, and how to fix it ?

always try to use the highest abstraction that exists for a certain event, eg you shouldn't connect a context menu to a EVT_RIGHT_UP mouse event, this is a platform specific detail (on mac you'd expect the context menu upon mouse down), please use EVT_CONTEXT_MENU

and please report back whether things then work

Thanks,

STefan






More information about the wx-users mailing list