I not able to udestrand why screenWidth return nil
#include "hbgtinfo.ch"
screenHeight:= HB_GTINFO( HB_GTI_DESKTOPHEIGHT )
screenWidth :=HB_GTINFO( HB_GTI_DESKTOPWIDTH )
?? screenWidth // DISPLAY NILL
In all gt i can use follow command?
hb_gtInfo( HB_GTI_SETFONT, { "Courier New", 18, 10,HB_GTI_FONTW_NORMAL
HB_GTI_FONTQ_HIGH } )
alternative i can use also this:
HB_GTInfo(HB_GTI_FONTNAME, "Courier New")
HB_GTInfo(HB_GTI_FONTSIZE, 18)
HB_GTInfo(HB_GTI_FONTWIDTH, 10 )
HB_GTInfo(HB_GTI_FONTWEIGHT , HB_GTI_FONTW_NORMAL)
HB_GTInfo(HB_GTI_FONTQUALITY,HB_GTI_FONTQ_HIGH )
is correct follow?
HB_GTInfo(HB_GTI_RESIZABLE, .T.)
HB_GTInfo(HB_GTI_CLOSABLE, .T.)
Hb_GTInfo(HB_GTI_MOUSESTATUS, 1 )
2009/3/11 Pritpal Bedi <[email protected]>:
>
> 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
>
--
Massimo Belgrano
Analisi e sviluppo software per Lan e Web - Consulenza informatica - Formazione
Delta Informatica S.r.l. http://www.deltain.it/ +39 0321 455962
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour