Re: tab id

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Jul 07 1999 - 18:24:29 MEST


Hi Jayoung,

   use the kCM_TAB event as in $ROOTSYS/test/guitest.cxx is done. To get
the string matching the tab id do fTab->GetTabTab(id)->GetString().

Cheers, Fons.

Jayoung Wu wrote:
> 
> Hi all,
> 
> To create GUI interface I used TGTab in the follwoing way.
> 
> fTab = new TGTab(this, 300, 300);
> TGCompositeFrame *mytab = fTab->AddTab("Plotting");
> mytab = fTab->AddTab("1D Histogram");
> mytab = fTab->AddTab("Graph");
> mytab = fTab->AddTab("2D Histogram");
> 
> How can I identify each tab element?
> For example when I cliked "1D Histogram" program should know "1D
> Histogram" is clicked.
> Can I assign id for each tab element?
> 
> Thanks a lot!
> Jayoung

-- 
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:35 MET