Massimo

Massimo Belgrano-3 wrote:
> 
> I want detect screen resolution and  resolution and set fond it gt will
> support
> In xharbour/gtwvt  i have write
>   screenWidth := Wvt_GetScreenWidth()
>   screenHeight := Wvt_GetScreenHeight()
>    if screenWidth >=  1920
>      WVt_SetFont("Courier New",40,21)
> 
> How can detect screen resolution?
> How can detect if GT SUPPORT change of font?
> HB_GTInfo(HB_GTI_FONTNAME,"Courier new")
> HB_GTInfo(HB_GTI_FONTSIZE, 40)
> 
> but now either function seem not work
> 

It seems you never read the messages properly 
or never try to investigate inspite of you having the
sources.

GTWVT in xHarbour is quiet different than GTWVT in 
Harbour. If you want to use those funtions then link
with GTWVG.

BTW this is again a point to be considered in GTWVT that
font parameters cannot be assigned indivisually. It is 
a collective bunch of 5 or so attributes. So I 
introduced 
hb_gtInfo( HB_GTI_SETFONT, { cFontName, nFontHeight, nFontWidth,
nFontWeight, nFontQuality } )
in GTWVG. It sets the font in one shot and is a logical one.

For screen resolutions:
hb_gtInfo( HB_GTI_DESKTOPHEIGHT | HB_GTI_DESKTOPWIDTH ) 

Regards
Pritpal Bedi


-- 
View this message in context: 
http://www.nabble.com/How-can-be-done-in-harbour--tp22462430p22462714.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to