Coloured tabs

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Coloured tabs

Postby Morley » Fri Oct 08, 2004 10:43 pm

Is it possible to colour the individual tabs on a tab panel?
Morley Chalmers
7Office Inc.
User avatar
Morley
 
Posts: 891
Joined: Fri Apr 25, 2003 4:54 pm
Location: Toronto, Canada

Postby IT2Be » Sat Oct 09, 2004 12:31 am

Searching for tabpanel in the help file shows you the below properties:
    foreground The foreground color of the tabpanel.
    background The background color of the tabpanel
From the sample code
    //Set / Get the foreground color
    var currentfg = elements.informationTabs.fgcolor;
    elements.informationTabs.fgcolor = currentfg;

    //Set / Get the background color
    var currentbg = elements.informationTabs.bgcolor;
    elements.informationTabs.bgcolor = currentbg;
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to Programming with Servoy

Who is online

Users browsing this forum: Google [Bot] and 37 guests