Windows and mouse : WindowMaker behavior

Edmund Ronald eronald at cmapx.polytechnique.fr
Thu Aug 15 10:39:48 UTC 2002


neat. but HOW DOES ONE STOP IT ?

Edmund

On Thu, 15 Aug 2002, Bergel Alexandre wrote:

> Hello,
> 
> Use this snippet of code for have a behavior a la WindowsMaker.
> 
> -=-=-=-=-=-=-=-=-=-=-=-=
> [ |ws| [ws _ ((World allMorphs select: [:m|m isKindOf: SystemWindow] ) select: [:w| w bounds containsPoint: (InputSensor default mousePoint)]). (ws isEmpty not & (InputSensor default mouseButtons =0 )) ifTrue: [ws first activate]. (Delay forMilliseconds: 100) wait. true] whileTrue] fork
> -=-=-=-=-=-=-=-=-=-=-=-=
> 
> Cheers,
> Alexandre
> 
> 




More information about the Squeak-dev mailing list