TOC PREV NEXT INDEX



A Complex Action


This last example will show how multiple action tags can be associated with a MenuItem. It will also involve making the Refresh menu item beep, both before and after the Refresh occurs. To do this,

  1. Make sure that the BeepAction class (page 141) is compiled.
  2. replace the code for the Refresh MenuItem with the following code:
<MenuItem label=Refresh> <action class=BeepAction>
<action class=datarep.ide.config.RefreshAction>
<action class=BeepAction>

More Action tags could be chained together if desired. Also command= and class= Action tags can be associated with the same MenuItem.


Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX