Hi
I wrote a small skript that intitalizes a new image with my preferences. Among other things I would like to customize the user menu. So how can I change the Preferences>>#personalizeUserMenu: method from within my skript?
Martin
Hi, What about ....
Preferences class compile: 'personalizeUserMenu: aMenu aMenu addTitle: ''Martin Personalized Menu''. aMenu addStayUpItem. aMenu add: ''browser'' target: Browser prototypicalToolWindow action: #openInHand.' notifying: nil.
Of course the string that you pass as an argument in compile: can be whatever you like it to be.
Also note the double ' inside the string. They are needed because in a string the ' character you need to escape it with another '.
Regards, HernĂ¡n
-----Original Message----- From: squeak-dev-bounces@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] On Behalf Of Martin Kuball Sent: Thursday, October 28, 2004 10:42 AM To: squeak-dev@lists.squeakfoundation.org Subject: changing code in a skript
Hi
I wrote a small skript that intitalizes a new image with my preferences. Among other things I would like to customize the user menu. So how can I change the Preferences>>#personalizeUserMenu: method from within my skript?
Martin
squeak-dev@lists.squeakfoundation.org