FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TTabs
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
TTabs
Posted: Wed Aug 27, 2008 09: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)

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TTabs
Posted: Thu Sep 04, 2008 05: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
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
TTabs
Posted: Thu Sep 04, 2008 08:20 PM

Thank, Antonio !
But I make up use class RFOLDER instead of TTABS

Continue the discussion