On Thursday 15 Jan 2009 12:03:03 am Filip Malczak wrote: > Propably I got it all wrong, so if anyone can explain me how to create > button and give a special action for clicking (any button, not only red) > from code level, I'd be VERY pleased. Any morph can act as a button. Just add a method "handlesMouseUp:" to return true based on the event passed as argument and handle the event in mouseUp: method. See the section "Adding Interaction" in http://stephane.ducasse.free.fr/FreeBooks/CollectiveNBlueBook/morphic.final.pdf
HTH .. Subbu _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners