To create automatically sized and placed virtual sub-menus, use the define autoplace and autosize virtual menu function, mn_vdefauto():
|
This function is comparable to mn_defauto(), except that a virtual menu is always defined. mn_vdefauto() first attempts to create a virtual menu that is the same size as the window. If the window cannot be sized such that all fields will fit within it, a virtual menu that is larger than the window is created. The menu window is sized to make as much of the underlying virtual menu visible as possible.