E
Eddie de Bear
Hi,
A project I am working on has a requirement for dynamic
menus. For the most part this works really well.
The menus I'm creating a based on files and directories,
so naturally the menu creation takes some time.
The approach I took was to override the OnSelect method
of the MenuItem class, which had code to populate the
child items.
This worked really well until I had to use the menu as a
context menu.. I found that the context menu does not
refresh properly below the first level menu..
The only way I can get this to work correctly is to use
reflection to call the private UpdateMenuItem method on
the MenuItem class.
Has anybody else had experiance with this??
Is the fact that the MenuItem does not refresh correctly
when in a context menu a bug???
Any feedback would be great..
Cheers
A project I am working on has a requirement for dynamic
menus. For the most part this works really well.
The menus I'm creating a based on files and directories,
so naturally the menu creation takes some time.
The approach I took was to override the OnSelect method
of the MenuItem class, which had code to populate the
child items.
This worked really well until I had to use the menu as a
context menu.. I found that the context menu does not
refresh properly below the first level menu..
The only way I can get this to work correctly is to use
reflection to call the private UpdateMenuItem method on
the MenuItem class.
Has anybody else had experiance with this??
Is the fact that the MenuItem does not refresh correctly
when in a context menu a bug???
Any feedback would be great..
Cheers