Menu

#43 Wrong RightMenu sender type

open
nobody
None
5
2006-02-04
2006-02-04
Jes Ramsing
No

I have a custom right menu which inherits as such

NPRightMenu :
NPlot.Windows.PlotSurface2D.PlotContextMenu

which has a single item of the type
NPlot.Windows.PlotSurface2D.PlotContextMenu.PlotMenuIte
m

However the type of sender in the actual event is of
type System.Windows.Forms.MenuItem

I don't have an idea about how to overcome this issue,
since I started out with a NPRightMenu ( containing
information about the plot it is associated to ) and
ends up with a generic menu. Bugger :-)

I suspect there is some typecasting in the code that
gives me a generic System.Windows.Forms.MenuItem

Any ideas ?

Regards
Jes Ramsing

Discussion


Log in to post a comment.

MongoDB Logo MongoDB