[FIX]Re:Re: [Annoyance] Script editors accept drop on playfields

Karl Ramberg karl.ramberg at chello.se
Thu Jan 25 20:26:59 UTC 2001


And that applies to PhraseTileMorph too...
I don't know if there are more of tiles that expands to
ScriptEditorMorphs when dropped
Karl

> Copied over the method from SystemWindows and it works like
> a dream :-)
> 
> >
> > After working some time with scripting this stands out
> > as a mayor annoyance. Usually I have a big playfield on the
> > desktop and then I start to bring up all sorts of scripts
> > and browsers etc. After a few minutes the desktop is cramped
> > a I have to put a script over the playfield. When I do that the
> > script editor gets D&D on the playfield and usually gets cropped
> > of so it's impossible to read/edit. Script editors could follow
> > the same rules as system windows and have embedding turned off by default.
-------------- next part --------------
'From Squeak2.9alpha of 13 June 2000 [latest update: #3193] on 25 January 2001 at 9:15:05 pm'!

!PhraseTileMorph methodsFor: 'mouse' stamp: 'kfr 1/25/2001 21:11'!
wantsToBeDroppedInto: aMorph
	"Return true if it's okay to drop the receiver into aMorph"
	^aMorph isWorldMorph or:[Preferences systemWindowEmbedOK]! !


!ScriptEditorMorph methodsFor: 'dropping/grabbing' stamp: 'kfr 1/25/2001 20:50'!
wantsToBeDroppedInto: aMorph
	"Return true if it's okay to drop the receiver into aMorph"
	^aMorph isWorldMorph or:[Preferences systemWindowEmbedOK]! !



More information about the Squeak-dev mailing list