[ROOT] Slider-Label-Combo connection

From: Kirill Shileev (kir@al20.inr.troitsk.ru)
Date: Tue May 22 2001 - 03:28:33 MEST


Hi rooters,
I didn't find any simple way to establish the subj, while such sort of
combination is farily common. Will somebody point me on this facility if
it exists in ROOT? To clarify what i'm talking about suppose you want 
to program say osciloscope trigger level wiget with slider. You certanly
want to see the current trigger value. For that you do something like that

//Trigger Level
pTabFrame->AddFrame(pGroupFrame=new TGGroupFrame(pTabFrame,"Level",kHorizontalFrame));	
pGroupFrame->AddFrame(pVerticalSlider=new TGVSlider(pGroupFrame,80,kSlider1));
pVerticalSlider->SetRange(0,255);
pTabFrame->AddFrame(pLabel=new TGLabel(pTabFrame,"127"));
   
pVerticalSlider->Connect("PositionChanged(Int_t)","TGLabel",pLabel,"What should be here???");
 

Regards, Kirill



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:46 MET