FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour character high and witdh
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
character high and witdh
Posted: Tue Dec 29, 2009 09:10 AM

I am a non professionnal programmer in FWH from source code
Can anyone tell me how I can make bigger the characters displayed within the windows. The characters to print are no problem.

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: character high and witdh
Posted: Tue Dec 29, 2009 10:37 AM

welcome to this forum

you have to define the font first and delete the object font afterwards

DEFINE FONT AFONT NAME "Tahoma" SIZE 0,-14 // this is a sample

@ 200,05 GET xxx VAR yyyy OF www PIXEL SIZE 90,30 COLOR CLR_HBLUE,CLR_WHITE FONT afont

You can add a font to every control (get, say etc...)

after activating the window, at end

afont:end()

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: character high and witdh
Posted: Thu Dec 31, 2009 12:42 PM

Thank you Richard, It works very good for says and gets but how can I do work it for listbox browses?

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: character high and witdh
Posted: Thu Dec 31, 2009 03:46 PM

DEFINE FONT oFONT NAME "Tahoma" SIZE 0,-14 // this is a sample

@ 1,1 LISTBOX ... FONT oFont

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: character high and witdh
Posted: Fri Jan 01, 2010 11:56 AM

many thanks to James Bott
best regards and a happy New Year
José

Continue the discussion