Defining Automatically Sized and Placed Virtual Sub-Menus

To create automatically sized and placed virtual sub-menus, use the define autoplace and autosize virtual menu function, mn_vdefauto():

int mn_vdefauto(mn_type, att, bdrp)

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.


Home Contents Previous Next