Resources

SAS® AppDev Studio 3.0 Developer's Site

TableView: Customize the Menu Bar   About It Build It  

This example illustrates how you can customize the TableViewComposite menu bar.

See It

TableView: Remove Query selector from Menu Bar

How It Works

The ActionProvider creates an ActionOrderList object that represents the set of Actions represented by the menu bar. By manipulating this ActionOrderList, we can change the order of the items on the menu bar, change properties of these Actions, or remove Actions from the ActionOrderList. The ActionOrderList is accessed by calling the getActionOrderList method of the ActionProvider. By default the Query selector is the last Action in the Edit Options ActionOrderList, so we simply remove the last Action to remove the Query selector from the menu bar.