Configuring actions / Action attributes list |
The COMMENT attribute defines hint for the user about the action.
Syntax 1 (Dialog action handlers and form action defaults)
COMMENT = [%]"string"
Syntax 2 (Global .4ad action defaults file)
comment = "string" (with optional LStr node for localized strings)
Use the COMMENT attribute to define a description for the action. This text will typically be displayed as a hint for the corresponding action view.
Consider using localized strings with the %"string-id" syntax, if you plan to internationalize your application.
This action attribute can be specified as action default attribute in a global .4ad file, in the ACTION DEFAULTS section of form files, as dialog action attribute, or as action view attribute.
-- As action handler attribute ON ACTION print ATTRIBUTES(COMMENT="Prints current record") -- As action default ACTION DEFAULTS ACTION print (COMMENT="Print current order information") END -- In a form buttom, using a localized string id BUTTON b1: print, COMMENT=%"actions.print.comment"; -- In a global action defaults file with a localized string id <ActionDefault name="zoom" comment="Opens a zoom window" ... > <LStr comment="actions.zoom.comment" /> </ActionDefault>