To programmatically control and manipulate menus at runtime, you can use PL/SQL in:
Related topics
About using PL/SQL code in menu item commands
Referencing form objects in PL/SQL menu item commands
Writing user-named subprograms
About menu startup code