Kbase P9224: How to disable buttons in a dynamic toolbar
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/23/2003 |
|
Status: Unverified
GOAL:
How to disable buttons in a dynamic toolbar
GOAL:
How to use the setDisableActions function in a super procedure
FACT(s) (Environment):
Dynamics 2.0A
FIX:
Several ways could be used to disable an action when the window is started.
The following are two ways to do it:
1- Customize the initializeObject in a super procedure with the following code:
RUN SUPER.
DYNAMIC-FUNCTION('setDisabledActions':U IN TARGET-PROCEDURE,
INPUT "action1,action2":U).
2- Use the Repository Maintenance tool.
Find the Window or Menu in the TreeView, then choose:
Object Instances -> ToolbarName -> Attributes
Add the DisabledActions attribute to the toolbar and set the action to be disabled in its "Attribute Value" option.