Basically replacement function (with different syntax) can be done with Hb_GtInfo( HB_GTI_FONTNAME , cFont ) Hb_GtInfo( HB_GTI_FONTWIDTH, nWidth ) Hb_GtInfo( HB_GTI_FONTSIZE , nHeight )
i can suggest see c:\harbour\tests\wvtext.prg c:\harbour\tests\wcecon.prg c:\harbour\tests\gtxfnt.prg c:\harbour\tests\gfx.prg c:\harbour\tests\gtwin.prg as more advanced option you can migrate your app to Hibrid Gui you can try The Hibrid Gui for windows platform gtwvg c:\harbour\contrib\gtwvg\tests\demowvg.prg (hbmk2 demowvg.prg) use the Hibrid Gui multiplatform based on qt gtwvt c:\harbour\contrib\gtqtc\tests\demoqtc.prg (hbmk2 demoqtc) for udestranding the power of qt you can see the upcoming visual ide for harbour hbide c:\harbour\contrib\hbide\hbide,prg (hbmk2 hbide) c:\harbour\contri\hbxbp\tests\demoxbp.prg (hbmk2 demoxbp) with most contrib project you must remember that if you made your sample out of native directory you must copy hbmk.hbm and revise or integrate in your project file hbp 2010/1/5 Marco Boeri <[email protected]> > Hi, > thank you for your exaustive answer. > No, it's not a must at all. I was trying to convert a sample application > with Harbour. I choosed an application among the others without a fixed > scope (that was the first that came in my mind...). These ct functions > worked well in that application but it's easy to disable them: > it's only cosmetic. > Your answer opens a wide range of other questions (at least for me), but I > think not to bore all of you in long a waste-time threads, as I see you are > full time engaged in coding and replying (very little time for family I > suppose...). Maybe in the future ... > > Best regards, > Marco > > Date: Tue, 5 Jan 2010 03:33:21 +0100 > > From: [email protected] > > To: [email protected] > > Subject: Re: [Harbour] ct functions > > > > > On Mon, 04 Jan 2010, Marco Boeri wrote: > > > > Hi, > > > > > some ct fuctions aren't recognized by Harbour. > > > These are > > > FontReset( ) > > > FontLoad( ) > > > FontSelect( ) > > > I added in .hbp file the -lhbct option, but without success. > > > Are they not yet implemented or there are new/other functions > > > to use instead of ? > > > > Such functionality like font reloading is available in practice only > > in DOS. In all other sysystems it's impossible to load and activate > > fonts using binary font definition so noone implemented above functions > > It's possible that they will be added in the future for Harbour DOS > builds > > but you should not expect that they will work in Harbour compiled for > > other platforms. They will always return -2 'Impossible in current video > > mode'. Sorry but this part is out of our control and we cannot easy > > emulate hardware (video adapter) behavior in modern systems where direct > > access to hardware devices is blocked by OS for native application. > > If such functionality is a must for you then it can be implemented in > > DOS Harbour versions (just like SETFONT() is implemented in DJGPP builds) > > and you can create DOS application and run it in full screen DOS mode > > using windows if your windows still supports it or using DOSBOX or > > similar emulator. > > Other solution is converting your raw font definition to system native > > font format and loading them using some system settings, i.e. by > > chosing font for console window in MS-Windows for GTWIN or using > > hb_gtInfo() with HB_GTI_* actions in grapic GTs like GTWVT or GTXWC. > > > > best regards, > > Przemek > > _______________________________________________ > -- Massimo Belgrano I
_______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
