Menu related question

  • Thread starter Thread starter Jin Chang
  • Start date Start date
J

Jin Chang

I have a situation where I need to close the menu programatically if
one is open. Based on what's available for CF (2.0), I have very
little option when it comes to working with menus. Of course, I may
be overlooking something obvious.

If I could detect the menu status (open or not) or find a way to force
an action that automatically closes any open menu, then it should
suffice. I suppose some non-managed coding may help, but any
suggestions would be appreciated.
 
I have a situation where I need to close the menu programatically if
one is open. Based on what's available for CF (2.0), I have very
little option when it comes to working with menus. Of course, I may
be overlooking something obvious.

If I could detect the menu status (open or not) or find a way to force
an action that automatically closes any open menu, then it should
suffice. I suppose some non-managed coding may help, but any
suggestions would be appreciated.

For anyone interested, I have found an interim solution.
If I reset the form.Menu to itself (this.Menu = this.Menu), it appears
to reset the menu UI so that any open menu is closed. I'm not sure if
this is a standard behavior, but it suffices for now.
 
Back
Top