Re: Problem with attaching commands to Slider Graphic Objects

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Aug 04 1999 - 18:40:02 MEST


Hi Irwin,

  I've added the ProcessLine statements for all TGSlider and TGDoubleSlider
classes. Thanks for noting the ommision.

Cheers, Fons.


Irwin Gaines wrote:
> 
> I am trying to use the new GUI classes, in particular to implement
> sliders, so I am using the classes TGHSlider and TGDoubleHSlider.  I
> would like to be able to "attach" an event handler to be executed
> whenever the slider moves, following the example of an event handler that
> is used with the TGTextButton and TGTextEntry classes in the dialogs.C
> tutorial macro.  Unfortunately this does not seem to work; the command
> processing function never gets invoked by movement of the sliders.  Upon
> investigation it is clear why not: the HandleButton methods in the slider
> classes do not have the fClient->ProcessLine statement that the
> HandleButton method has in the TextButton and TextFrame classes.  Is
> there some reason why the slider classes do not implement this function;
> and could this please be added in to the slider classes.  thanks,
>                                         Irwin Gaines

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:37 MET