Just for the records:

in Pharo 1.2. it is now possible to define an own custom pragma 
that is used to define a world menu. This is especially usefull
when you create a (commercial) application based on Pharo.

How it works:
=============

1. Define your new world context menu by providing class methods 
   with your own custom world menu entries. Instead of using the
   usual "worldMenu" pragma we use a custom pragma, here
   "myAppWorldMenu":
   

     menuCommandOn: aBuilder 
         <myAppWorldMenu> 
         (aBuilder item: #'About MyApp')
                action: [ 'HelloWorld' inspect ]; 
                icon: ThemeIcons pharoIcon


2. Switch the world state to use the custom pragram:
 
    WorldState desktopMenuTitle: 'My shiny App'.
    WorldState desktopMenuPragmaKeyword: 'myAppWorldMenu'

If you want the old one back just evaluate:

    WorldState desktopMenuTitle: 'World'.
    WorldState desktopMenuPragmaKeyword: 'worldMenu'


Maybe someone can add this to the open pharo book or give me 
an account, a short howto and time to include it.
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to