8.5 Examples of Defining Presentation Translators in CLIM

8.5.4 Defining a Presentation Action

Presentation actions are only rarely needed. Often a presentation-to-command translator is more appropriate. One example where actions are appropriate is when you wish to pop up a menu during command input. Here is how CLIM's general menu action could be implemented:

 (t nil clim:global-command-table 
    :tester-definitive t :documentation "Menu" 
    :menu nil :gesture :menu) 
 (presentation frame window x y) 
 (clim:call-presentation-menu presentation clim:*input-context* 
                              frame window x y :for-menu t)) 

CLIM 2.0 User's Guide - OCT 1998

Generated with Harlequin WebMaker