[fxruby-users] Monitoring events/messages
Lyle Johnson
lyle at lylejohnson.name
Mon Jan 19 10:45:49 EST 2009
On Jan 18, 2009, at 1:20 PM, David MacMahon wrote:
> I am trying to learn FXRuby (and Fox). I already know Ruby pretty
> well. One thing that would help my understanding of FXRuby (and
> Fox) is to be able to monitor (i.e. spy) on events that are sent to
> a particular widget, class of widgets, or every widget.
You can try setting the target for a particular widget to an
FXDebugTarget instance. It should then print to the console all of the
messages that that widget receives, e.g.
button = FXButton.new(...)
debug_target = FXDebugTarget.new
button.target = debug_target
Hope this helps,
Lyle
More information about the fxruby-users
mailing list