Problem with attaching commands to Slider Graphic Objects

From: Irwin Gaines (gaines@fnal.gov)
Date: Sat Jul 31 1999 - 06:01:01 MEST


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



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