On 05/05/2011 01:45 PM, Markus Fritsche wrote:
Hello list,
I was searching for the right (sustainable) way to extend the browser
menu. I searched for the menu labels (show "methods with strings in
it" etc.) but couldn't find it, so there must be another hook. Could
anyone give me quick pointer?
TIA,
Markus
myMenuCommandOn: aBuilder
<worldMenu>
aBuilder item: #MyStuff
myFullScreenMenuCommandOn: aBuilder
<worldMenu>
(aBuilder item: #'Full Screen')
parent: #MyStuff;
action: [ DisplayScreen new toggleFullScreen ]
Of course, #parent: could also point at an existing menu if you're just
adding to what's already there. Doesn't matter where you put these,
they're found by the <worldMenu> pragma.
--
Ramon Leon
http://onsmalltalk.com