how to make it apparent that a TextMorph's text (or substringthereof) has been selected?

Gary Chambers gazzaguru2 at btinternet.com
Tue Nov 13 10:49:12 UTC 2007


You'll need to implement

handlesMouseOver: anEvent
 "Answer true if we want to receive mouseEnter and mouse Leave events."

 ^true
 
and update your mouse enter code with

mouseEnter: evt 
	self takeKeyboardFocus.
	self editor selectAll.
	self changed



More information about the Squeak-dev mailing list