Possible, to change fonts in Buttonbar (2007) ?

Possible, to change fonts in Buttonbar (2007) ?

Postby ukoenig » Thu Mar 27, 2008 6:39 pm

Hello,

I have big buttonbar-buttons and hight screen-resolutions.
The text is hard to read.
I had a look in the classes and could't see any font defines.

Is it possible to change the font-size for buttonbars ?

Regards

Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Antonio Linares » Fri Mar 28, 2008 10:08 am

Uwe,

Please search for DEFINE FONT oFont NAME "Tahoma" SIZE 0, -11 in Class TBtnBmp and modify it.
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

Change font in Buttonbar

Postby ukoenig » Fri Mar 28, 2008 10:58 am

Antonio,

thank you very much.
As a option, i will make it
in relation of the button-hight

Code: Select all  Expand view
nSIZE := -11
if  ::nHeight >= 100
    nSIZE := -16
endif
if  ::nHeight < 100 .and. ::nHeight >= 80
    nSIZE := -15
endif
if  ::nHeight >= 50 .and. ::nHeight < 80
    nSIZE := -12
endif
if ::oWnd:oFont != nil
    if ::oWnd:oFont:cFaceName != "Tahoma"
       DEFINE FONT oFont NAME "Tahoma" SIZE 0, nSIZE
       ::oWnd:SetFont( oFont )
    endif   
else   
    DEFINE FONT oFont NAME "Tahoma" SIZE 0, nSIZE
    ::oWnd:SetFont( oFont )
endif   


That looks fine

Regards

Uwe :lol: [/code]
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests