# # This file is encoded in (so called) SHIFT-JIS, # line delimitor is CR. # FillInTheBlankView Modifier Goodies for Squeak 1.31 Broken English description Summary: I don''t know how to close the window such as made by FillInTheBlank message: ''What is your name?'' displayAt: Sensor waitButton centered: true action: [:answer | Transcript cr; show: answer] initialAnswer: ''''. So I added aCRFillInTheBlankController to answerView of topView of aFillInTheBlankView. Yes, this allow ONE line only. Installing: FileIn this source code, and makes a class "FillInTheBlankViewModifier" in a category "Nishis-Goodies-Misc". AND 1 methods are modified in a category "instance creation" of the class "FillInTheBlankView". FillInTheBlankView class>>openOn:message:displayAt:centered:answerHeight:windowTitle When you want to restore your image, please remove this class "FillInTheBlankViewModifier" from your system. Additions of FillInTheBlankView 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 how to use: see examples. ########################################################## 概要: "FillInTheBlank example1" を走らせると、ウィンドウが出現しますが、 これを閉じる方法が判りません。リターンキーを叩いてもダメだし、クロー ズ・ボックスもうんともすんとも言いません。青ボタン・メニューすら出ま せん。しょうがないので、複数行入力をあきらめて、単一行のみの入力を受 け付けるパッチを当ててみました。 インストール方法: このソースを読み込んで(fileInして)下さい。 Nishis-Goodies-Misc というカテゴリの中に FillInTheBlankViewModifier というクラスが作成され、FillInTheBlank クラスの instance creation というプロトコルにある、以下のメソッドが変更されます。 FillInTheBlankView class>>openOn:message:displayAt:centered:answerHeight:windowTitle 元に戻したい場合には, FillInTheBlankViewModifier というクラスを 削除して下さい。オリジナルのソースへ戻されます。 [変更-復帰]のパタンは、青木さんが作成されたプログラム (matsuda.zip) がオリジナルです。 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/ ----------------------------------------------------------