Navigation: Ultimate Suite for PowerBuilder Help > PowerMenu/Pro (Ribbon) > Functions >

of_showtoplevelmenu

Send comments on this topic.

 

Description:

Use this method to show or hide top level menu items in the ribbon tab. 

Syntax:

of_showtoplevelmenu (ref menu a_menu, boolean ab_visible, boolean ab_rebuild)

Argument

Description

a_menu

The menu that will be made visible or invisible (e.g. m_edit)

ab_visible

Pass TRUE to show the menu as a tab or FALSE to hide it.

ab_rebuild

Pass TRUE to automatically rebuild the ribbon or FALSE to defer rebuilding the menu.

Return Value:

Always returns 1.

Usage:

If you have many top level menu items to show or hide then pass FALSE to the ab_rebuild parameter. You would then call of_RebuildRibbon to apply the changes.


Copyright © 2021 Werysoft Inc.