Kbase P120456: ADM2: How to hide and show SmartToolBar actions?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/11/2006 |
|
Status: Unverified
GOAL:
How to hide and show SmartToolBar actions?
GOAL:
How to hide SmartToolBar actions?
GOAL:
How to show SmartToolBar actions?
FIX:
The following code calls the viewHideActions procedure to show and hide the "Delete" action of a SmartToolBar. Note that the viewHideActions procedure takes two input character parameters: The first listing the actions to view and the second listing the actions to hide. For example, the following call hides the "Delete" action and makes the "Add" action visible:
RUN viewHideActions IN h_dyntoolbar ( INPUT "Add", INPUT "Delete").
1. To hide the "Delete" action of a SmartToolBar, execute code similar to the following:
DEFINE VARIABLE pcViewActions AS CHARACTER NO-UNDO.
DEFINE VARIABLE pcHideActions AS CHARACTER NO-UNDO.
ASSIGN
pcHideActions = "delete".
RUN viewHideActions IN h_dyntoolbar ( INPUT pcViewActions, INPUT pcHideActions).
2. To reverse the above action, execute code similar to the following:
DEFINE VARIABLE pcViewActions AS CHARACTER NO-UNDO.
DEFINE VARIABLE pcHideActions AS CHARACTER NO-UNDO.
ASSIGN
pcViewActions = "delete".
RUN viewHideActions IN h_dyntoolbar ( INPUT pcViewActions, INPUT pcHideActions).