From: Lyle Johnson Date: 2002-12-01T10:01:19+09:00 Subject: Re: can we ADD connection to FXShutterItem.button Ludo wrote: > I'd like to add a call to an object FXShutterItem.button without loose > its old behavior: > myFXShutterItem.button.connect(SEL_COMMAND) { puts "Yeps!" } > but I want the FXShutter receive the message too. The standard order of events is: 1. The shutter item's button sends a SEL_COMMAND message to the shutter; 2. The shutter opens the correct shutter item; 3. The shutter sends a SEL_COMMAND message to its (the shutter's) message target. So if you're just wanting to be notified when the user clicks on a particular shutter item to open it you should just catch the SEL_COMMAND message from the shutter directly, i.e. shutter = FXShutter.new(...) shutter.connect(SEL_COMMAND) do |sender, sel, which| puts "just opened shutter item no. #{which}" end Hope this helps, Lyle