How can I share MenuItems?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

For the the sake of keeping my code simple, I wanted a ContextMenu and a
MainMenu to share some MenuItems, but it turns out when I Add() one MenuItem
to the other it 'steals' that MenuItem so it does not appear on both... is
there any way to share MenuItems or am I forced to clone them and waste some
resources?
 
Yes, you have to clone them - it's by design.
-quote-
Because a MenuItem cannot be reused in multiple locations at the same time,
such as in a MainMenu and a ContextMenu, you can use the CloneMenu method to
create a copy of a MenuItem for use in another location.
-unquote-
 
Back
Top