From: Lyle Johnson Date: 2004-04-13T23:19:13+09:00 Subject: Re: FXRuby: overload FXSlider Martin wrote: > I want to create a custom control which changes the background color > of the slider whenever an update happens. By "whenever an update happens", I assume you mean "whenever the slider's value changes". > What's the best way to do this? The > control should behave exactly like FXSilder, so I can not use > connect(). In that case you could subclass FXSlider and override the default messages handlers for the SEL_MOTION, SEL_LEFTBUTTONPRESS and SEL_LEFTBUTTONRELEASE messages. > And while I am at it: why doesn't connect() support > multiple message handlers? This may be changed in the near future; someone has recently posted some code to the fxruby-users mailing list which address that very problem.