Click Event on MenuItem with subitems

  • Thread starter Thread starter Florian Pürsch
  • Start date Start date
F

Florian Pürsch

Hi group,

I have a MenuItem with some subitems. I don't want the Click-Event of the
MenuItem to show me the subitems, but to do something else - e.g. opening a
dialog. The subitems will be shown anyway by mouseOver.

MenuItem submenuImages = new MenuItem("Image", new
EventHandler(this.menuItem_Image));

or

submenuImages.Click += new EventHandler(menuItem_Image);


But this EventHandler is never accessed. Why?


I also tried to derive from MenuItem to create my own MenuItem and overwrite
it's OnClick - but it seems to me, that this is not possible.

Florian
 
Florian,

If your menu item has submenu is it going to be confusing if the menu item
is clickable. I haven't seen such an UI so far.
 
Stoitcho ,

I have thought about this, too. In the first place, it's easier for me.
Secondly the confusing thing.
I think, I can't argue that one less click is woth breaking with a habit. It
looked good at the first glace, but I came to the same opinion by now.

But I think, I have seen applications using such an UI - but you don't have
to run after everything I guess.

Florian
 
Back
Top