From: Lyle J. <jl...@cf...> - 2003-07-29 13:12:53
|
Recheis Meinrad wrote: > yeah, thats exactly what i was looking for. great help lyle! > > last question: > can i ignore the selector(type and id) in every case? In many cases, yes. For a case like this: canvas.connect(SEL_MOUSEWHEEL) { |sender, sel, evt| ... } You obviously already know what the message type is, so there's no point in decoding the selector (sel) to identify it. Similarly, unless the same message handler method is handling messages from a lot of different senders, it's unlikely that you'll need to check the message identifier part. For a little more background, you might want to check out Jeroen's documentation on FOX's message-target system at the FOX home page (http://www.fox-toolkit.org). I would give you a direct URL for the page I'm talking about, but the FOX site is temporarily down while Jeroen awaits a new network router ;) I'd also recommend checking the archives of this mailing list (fxruby-users) for a long discussion that Hugh Sasse and I had about how to interpret/use the message types and identifiers. Hope this helps, Lyle |