# # This file is encoded in (so called) SHIFT-JIS, # line delimitor is CR. # Menu Modifier Goodies for Squeak 2.0 Broken English description Summary: Default Squeak menu has no selected item. So I''m very tired to re-select same item as before. mouseDown holding while: [mouseMove] selecting mouseUp Yes, I can select the item with moving mouse a little, but it is nice when startUp menu with selecting item as selected once. So here is this Goodies. Installing: FileIn this source code, and makes a class "MenuModifier" in a category "Nishis-Goodies-Interface". AND each 1 methods are modified in a category "basic control sequence" of the class "PopUpMenu". PopUpMenu>>startUpWithCaption: captionOrNil When you want to restore your image, please remove this class "MenuModifier" from your system. Additions of Behavior class are automatically remevoed and restored. The pattern of [modify-restore] is following Mr. AOKI. See the attachment file (matsuda.zip) of http://www.sra.co.jp/smalltalk/SML/mails/1501-1600/1552.txt ########################################################## 概要: Squeak のメニューはデフォルトでは無選択状態なので、何度も 同じアイテムを選択するときは、けっこううざったいものがあります。 mouseDown holding while: [mouseMove] selecting mouseUp という具合です。ほんのちょいとマウスをズラせば済む話ではありま すが、やっぱ面倒。ということで、メニューを揚げたときに、すでに 選択状態になっている Goodies です。 インストール方法: このソースを読み込んで(fileInして)下さい。 Nishis-Goodies-Interface というカテゴリの中に MenuModifier というクラスが作成され、 basic control sequence というプロトコルを 持つ PopUpMenu クラスにある、以下のメソッドが変更されます。 PopUpMenu>>startUpWithCaption: captionOrNil 元に戻したい場合には, MenuModifier というクラスを 削除して下さい。オリジナルのソースへ戻されます。 [変更-復帰]のパタンは、青木淳さんが作成されたプログラムが オリジナルです。 http://www.sra.co.jp/smalltalk/SML/mails/1501-1600/1552.txt に添付されている attachment ファイルを参照してください。 ---------------------------------------------------------- 西原聡士 (NISHIHARA Satoshi) e-mail: mailto:nishis@zephyr.dti.ne.jp URL: http://www.zephyr.dti.ne.jp/~nishis/ ----------------------------------------------------------