[Q] Making a button immune to mouse clicks

Stephan B. Wessels swessels at one.net
Sun Apr 14 00:35:20 UTC 2002


Would a transparent morph on top be useful?

I did that on the IRC enhancements setup dialog to disable all the controls
while the user was connected.  It was also fun because I draw some text over
the "glass" pane that let's the user know they cannot change anything.

 - Steve
On 4/13/02 4:07 PM, "Martin Drautzburg" <martin.drautzburg at web.de> wrote:

> I want to embed a SimpleButton in a larger RectangleMorph. If I add
> the Button as submorph to the Rectangle, the Button is always on
> top. #goBehind does not seem to change this.
> 
> Thus the Button responds to mouse events. I want the Button to be
> "dead" though, i.e. I want to be able to drag the twosome from the
> Button. 
> 
> I could turn things around and add the rectangle to a Button.
> 
> I could subclass the Button and let handlesMouseDown: return false.
> 
> What other options do I have ?
> 
> 




More information about the Squeak-dev mailing list