[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-ui-dev] runWithEvent support for contributed drop down actions
|
Joe,
Yes, it could. Please file a PR and assign it to me.
Nick
Joe_Szurszewski@xxxxxxx
Sent by: platform-ui-dev-admin@xxxxxxxxxxx
12/20/01 01:27 PM
Please respond to platform-ui-dev
To: platform-ui-dev@xxxxxxxxxxx
cc:
Subject: [platform-ui-dev] runWithEvent support for contributed drop down actions
I would like to take advantage of the new support in IAction for the
runWithEvent(Event) method. I want to do this so I can access the state
mask of the action, and determine if a key like Shift or Ctrl was held
down when the action was invoked. The problem is that since my action is
a contributed drop action on the toolbar, my overridden version of
runWithEvent is never called. The action contribution item's action is a
WWinPluginPulldown, and this class does not override runWithEvent, but
just uses the default supplied by Action, which just calls run(). The
run() method defined by PluginPulldown creates the delegate and calls
run(IAction) on it. Thus, the runWithEvent() I've defined in the delegate
gets ignored. I realize this support is new and subject to change, but
couldn't WWinPluginPulldown override runWithEvent to call runWithEvent on
the delegate, passing in the event?
Thanks,
Joe