[squeak-dev] The Trunk: Morphic-ct.2059.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jan 10 18:53:54 UTC 2023


Christoph Thiede uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.2059.mcz

==================== Summary ====================

Name: Morphic-ct.2059
Author: ct
Time: 10 January 2023, 7:53:24.619506 pm
UUID: 1290c367-ee35-e941-8b6f-293da41799d7
Ancestors: Morphic-mt.2057

Fixes documentation example for FillInTheBlankMorph class>>#requestPassword:initialAnswer:centerAt:inWorld:onCancelReturn:acceptOnCR:.

=============== Diff against Morphic-mt.2057 ===============

Item was changed:
  ----- Method: FillInTheBlankMorph class>>requestPassword:initialAnswer:centerAt:inWorld:onCancelReturn:acceptOnCR: (in category 'instance creation') -----
  requestPassword: queryString initialAnswer: defaultAnswer centerAt: aPoint inWorld: aWorld onCancelReturn: returnOnCancel acceptOnCR: acceptBoolean
  	"Create an instance of me whose question is queryString with the given initial answer. Invoke it centered at the given point, and answer the string the user accepts.   If the user cancels, answer returnOnCancel."
  	"FillInTheBlankMorph
+ 		requestPassword: 'Type something, then type CR.'
- 		request: 'Type something, then type CR.'
  		initialAnswer: 'yo ho ho!!'
+ 		centerAt: Display center
+ 		inWorld: self currentWorld
+ 		onCancelReturn: nil
+ 		acceptOnCR: true"
- 		centerAt: Display center"
  
  	| aFillInTheBlankMorph |
  	aFillInTheBlankMorph := self new
  		setPasswordQuery: queryString
  		initialAnswer: defaultAnswer
  		answerHeight: 50
  		acceptOnCR: acceptBoolean.
  
  	aFillInTheBlankMorph createAcceptButton
  		action: [aFillInTheBlankMorph textPane accept].
  	aFillInTheBlankMorph createCancelButton
  		action: [aFillInTheBlankMorph closeDialog: returnOnCancel].
  		
  	aFillInTheBlankMorph preferredPosition: aPoint.
  	^ aFillInTheBlankMorph getUserResponse!



More information about the Squeak-dev mailing list