TTabs

TTabs

Postby Natter » Wed Aug 27, 2008 9:55 am

Hi, all !
How may change Color, Font and Height control of TTabs classl ? I can changed Width and aSized only(FWH 8.04)
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Postby Antonio Linares » Thu Sep 04, 2008 5:26 pm

Natter,

Class TTabs uses different bitmaps to paint the tabs, so in order to use your own images you have to replace these functions with yours:

hBmpSel = bmp_TabSel()
hBmpSelL = bmp_TabSelL()
hBmpSelR = bmp_TabSelR()
hBmpUnSel = bmp_TabUnSel()
hBmpUnSL = bmp_TabUnSL()
hBmpUnSR = bmp_TabUnSR()

hBmpSelV = bmp_TabSelV()
hBmpSelLV = bmp_TabSelLV()
hBmpSelRV = bmp_TabSelRV()
hBmpUnSelV = bmp_TabUnSelV()
hBmpUnSLV = bmp_TabUnSLV()
hBmpUnSRV = bmp_TabUnSRV()

each one returns a bitmap handle. So there is no way to change the color unless you replace those functions with yours.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Natter » Thu Sep 04, 2008 8:20 pm

Thank, Antonio !
But I make up use class RFOLDER instead of TTABS
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests