Em 28/5/2010 12:01, Pritpal Bedi escreveu:
SCWIDTH:=HB_GTINFO(HB_GTI_SCREENWIDTH) is readonly scHEIGHT:=HB_GTINFO(HB_GTI_SCREENHEIGHT) is readonly You cannot set the screenwidth/height of an console. This can only be done in SetMode() or through font manipulation.
Yes. But the return HB_GTINFO(HB_GTI_SCREENWIDTH) is correct ? Because my desktop is 1280 pixels and return is 640 :-( For example: ANNOUNCE HB_GTSYS REQUEST HB_GT_GUI Function Main ... elseif screenWidth >= 1024 // 1024*760 Hb_GtInfo( HB_GTI_FONTWIDTH, 12.5 ) HB_GTInfo(HB_GTI_FONTSIZE, 20) elseif screenWidth >= 800 Hb_GtInfo( HB_GTI_FONTWIDTH, 10 ) HB_GTInfo(HB_GTI_FONTSIZE, 18) ELSE ... Function HB_GTSYS() REQUEST HB_GT_WVG_DEFAULT REQUEST HB_GT_WVT REQUEST HB_GT_WGU Return NIL Not working. Best regards, Itamar M. Lins Jr. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour