Possible, to change fonts in Buttonbar (2007) ?

Post Reply
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Possible, to change fonts in Buttonbar (2007) ?

Post by ukoenig »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Change font in Buttonbar

Post by ukoenig »

Antonio,

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

Code: Select all

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.
Post Reply