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.
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:
The shutter item’s button sends a SEL_COMMAND message
to the shutter;
The shutter opens the correct shutter item;
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