[Gambas-user] Changing text on Tabstrip

richard terry rterry at ...1946...
Sun Mar 15 23:53:23 CET 2009


On Mon, 16 Mar 2009 08:38:15 am Richard Gladman wrote:
> richard terry wrote:
> > If one has say three tabs
> >
> > tab1      tab2       tab3
> >
> > and the contents of Tab1 are showing.
> >
> > Is it possible to change the text on either tab2 or 3 without the display
> > changing.
> >
> > If one does : tabstrip1.index = 2 and tabstrip1.text = "sometext"
> >
> > Then this has the same effect as a tabstrip1_click() event, and the 3rd
> > tab becomes the active tab.
> >
> > Regards
> >
> > Richard
> >
> > -------------------------------------------------------------------------
> >----- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM)
> > are powering Web 2.0 with engaging, cross-platform capabilities. Quickly
> > and easily build your RIAs with Flex Builder, the Eclipse(TM)based
> > development software that enables intelligent coding and step-through
> > debugging. Download the free 60 day trial.
> > http://p.sf.net/sfu/www-adobe-com
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> Try this
>
>  TabStrip1[1].Caption = "Test"

Thanks, that works plus it dosn't trigger the tabstrip1_click() event which 
was a nuisance.

I'll put this in my knowledge base!

Richard





More information about the User mailing list