Dirk Schwendemann
2006-Mar-28 16:14 UTC
[fxruby-users] intercepting messages from FXScrollBar to FXScrollArea
Hi FXRuby-users, I want to connect to SEL_CONFIGURE events of a FXScrollBar. The corresponding code looks like this: @scrollArea.verticalScrollBar.connect(SEL_CONFIGURE){ ... } After this connect, the ScrollArea doesn''t receive any events. Before the call, the target of the Scrollbar was the FXScrollArea. After the call, the connect method has created an PseudoTarget that has overwritten the original target. Any idea, how I can connect to the verticalScrollBar without disturbing the ScrollArea? One more question: Is there a "global" hook method that can be used in a FXObject to intercept all messages sent to this object? The handle method of FXObject doesn''t seem to work for this Thanks, Dirk -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
Lyle Johnson
2006-Mar-28 19:20 UTC
[fxruby-users] intercepting messages from FXScrollBar to FXScrollArea
On Mar 28, 2006, at 10:14 AM, Dirk Schwendemann wrote:> I want to connect to SEL_CONFIGURE events of a FXScrollBar...What is it that you''re trying to accomplish?
Meinrad Recheis
2006-Mar-28 21:07 UTC
[fxruby-users] intercepting messages from FXScrollBar to FXScrollArea
hi dirk, maybe i am wrong, but i think it''s possible like this: @scrollArea.verticalScrollBar.connect(SEL_CONFIGURE){ # your code here... next 0 # tell fox to execute the original message handler. } hth -- henon On 3/28/06, Lyle Johnson <lyle at knology.net> wrote:> > On Mar 28, 2006, at 10:14 AM, Dirk Schwendemann wrote: > > > I want to connect to SEL_CONFIGURE events of a FXScrollBar... > > What is it that you''re trying to accomplish? > > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >