Performs an action on a toolbar button.
Syntax
ActionRibbon(<button>, <method>,
<parameters>)
Parameters
button
Name of the toolbar button on which the action should take
place.
method
The method to perform. This may be one of the following:
set-values(ButtonName,resourceName,value)
set-sensitive(ButtonName)
set-non-sensitive(ButtonName)
remove-widget(ButtonName)is
the same as
destroy-widget(ButtonName)
parameters
The parameters for the specified action.
Example
ActionRibbon('Save All', set-non-sensitive, 'Save All')
- attached to the pre-field
entry behaviour property of the field
ActionRibbon('Save All',
set-sensitive, 'Save All')
- attached to the post-leave
of the same field
NOTE:
set-values() is only supported for the 'bitmap' resource.
|