On Oct 26, 2006, at 10:14 AM, Basil Shubin wrote:
Maybe there be possible a workaround? How to disabel this context
menu?
The event is 'GridHeaderMouseRightClick', so in your grid class, you
can do one of two things:
1) Remove the event binding in the afterInit() method by calling:
self.unbindEvent(dabo.dEvents.GridHeaderMouseRightClick)
2) Define your own bound method to that event, and call the event's
stop() method:
def on GridHeaderMouseRightClick(self, evt):
evt.stop()
The first removes the built-in response of the grid to a header
right click. The second leaves the binding in place, but stops the
event from propagating up and executing the framework-level bindings.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users