Search found 45 matches: screenwidth

Return to advanced search

Re: Monitor function error

i.e. the resolution of ScreenWidth() is right the resolution of ScreenHeight() is bad compared to the screen resolution,there is a difference of 63

ScreenHeight() excludes the taskbar height, and gives the height available for our program's window/display.
by nageswaragunupudi
Wed Jan 10, 2024 11:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Monitor function error
Replies: 2
Views: 518

Monitor function error

I made easy ?ScreenHeight(),ScreenWidth() and give me 961, 1280 the screen resolution is actually different as you can see on picture https://i.postimg.cc/0Qb1p1gR/errore-schermo.png How it's possible ? this is why one then ...
by Silvio.Falconi
Wed Jan 10, 2024 8:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Monitor function error
Replies: 2
Views: 518

Re: Resolution of monitor

it is better to use or


local nWd := GetSysMetrics(0) * .90
local nHt := (GetSysMetrics(1) / 2.1 )


or

local nHt := Int( ScreenHeight() * 0.55 )
local nWd := Int( ScreenWidth() * 0.90 )
by Silvio.Falconi
Tue Jan 09, 2024 9:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Resolution of monitor
Replies: 29
Views: 2314

Re: FWH: All functions, classes, methods with source code

... #define EM_LINESCROLL 182 #define EM_GETFIRSTVISIBLELINE 0x00CE and further in the program the get to show the programlines nWd := Int( ScreenWidth() * 0.9 ) @ 50,420 GET oGet VAR cText MEMO SIZE nWd - 440, 530 PIXEL OF oDlg FONT oFixed static function GetSetTopRow( oGet, nRow ) local ...
by Marc Venken
Thu Oct 06, 2022 9:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: All functions, classes, methods with source code
Replies: 15
Views: 1278

calculate the right position

I saw I can create a dialog with local nHt := Int( ScreenHeight() * 0.5 ) local nWd := Int( ScreenWidth() * 0.5 ) DEFINE DIALOG oDlgAgenti SIZE nWd, nHt PIXEL FONT oFont TRUEPIXEL ; TITLE cTitle TRANSPARENT COLOR CLR_BLACK,RGB( 245,244,234 ) ICON oIcon But How I can calc ...
by Silvio.Falconi
Sat Nov 27, 2021 12:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculate the right position
Replies: 0
Views: 277

Re: Compilando Proyecto con MINGW otra Duda en Ejecuccion

En mi proyecto no me da valores cuando uso estas estruciones screenWidth := HB_GTINFO( HB_GTI_DESKTOPWIDTH ) screenHeight:= HB_GTINFO( HB_GTI_DESKTOPHEIGHT ) no asigna ningun valor en screenWidth y screenHeight wvt_SetFont( "Lucida Console", ...
by ruben Dario
Sat Jan 16, 2021 1:53 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Compilando Proyecto con MINGW
Replies: 8
Views: 922

TITLETEXT Refresh() Arrays...(SOLVED)

... LOCAL xCnt,oDlg , oOpt1 , nOpt1,lFirst := .T. LOCAL nX,nY,tX,tY Local n:=0 LOCAL Scrn_W := ScreenWidth() // 1366 LOCAL Scrn_H := ScreenHeight() // 716 Local oLen_Head,dDAte Local oLen7,oLen6,oLen5 LOCAL oDash_T,oTime_AA LOCAL t := 1 // Open ...
by RiazKhan
Sat Jun 06, 2020 7:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TITLETEXT Refresh() Arrays...(SOLVED)
Replies: 2
Views: 502

How To Refresh() TITLETEXT With Arrays...???

... LOCAL xCnt,oDlg , oOpt1 , nOpt1,lFirst := .T. LOCAL nX,nY,tX,tY Local n:=0 LOCAL Scrn_W := ScreenWidth() // 1366 LOCAL Scrn_H := ScreenHeight() // 716 Local oLen_Head,dDAte Local oLen7,oLen6,oLen5 LOCAL oDash_T,oTime_AA LOCAL t := 1 // Open ...
by RiazKhan
Mon May 25, 2020 3:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How To Refresh() TITLETEXT With Arrays...???
Replies: 2
Views: 682

Multi-Monitor Screen Size/DPI

hi, i have found in c:\fwh\source\function\getsysin.prg --- function ScreenWidth()function ScreenHeight() ScreenWidth() / ScreenHeight() use SM_CXFULLSCREEN / SM_CYFULLSCREEN this work well when Scale is 100% but fail at 150% or is it "by ...
by Jimmy
Fri Dec 20, 2019 7:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multi-Monitor Screen Size/DPI
Replies: 0
Views: 279

Re: METRO with visible taskbar ?

... to oRect:nTop := oRect:nBottom - SCRLB_HEIGHT - 40 The defined mainwindow DEFINE WINDOW oMWnd TITLE cTitle FROM 0, 0 TO ScreenHeight() + 20, ScreenWidth() PIXEL ; STYLE nOr( WS_POPUP ); COLOR CLR_WHITE, CLR_GREEN oMetro := MakeMetroPanel( oMWnd ) DEFINE BRUSH oBrush FILE c_Path1 + "earth.bmp" ...
by MarioG
Wed Jul 24, 2019 12:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: METRO with visible taskbar ?
Replies: 5
Views: 1347

Re: coordinates of computer/tablet

Silvio,

can we Know the size of screen of our pc or tablet to pen a Dialog with max sizes


there are 2 functions to get the max size

nH := ScreenHeight()
nW := ScreenWidth()

DEFINE DIALOG oDlg SIZE nW, nH PIXEL TRUEPIXEL FONT oFont


regards
Uwe :D
by ukoenig
Tue Jul 16, 2019 7:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: coordinates of computer/tablet
Replies: 2
Views: 583

Re: SayBarCode control

when I am compilig c:\fwh\samples\barcod01.prg FWH 19.03 and xHarbour.com v.19.01 I get error Type: C >>>xhb.exe -o"t.c" -m -n -p -q -gc0 -I"S:\include" -I"R:\include" -I"R:\include\w32" "t.prg"<<< xHarbour 1.2.3 Intl. (SimpLex) (Bu...
by kajot
Tue Apr 09, 2019 6:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SayBarCode control
Replies: 34
Views: 5886

Re: Mi primera Aplicación con Fivetouch

... Function WndPrincipal() Local oPrincipal Local aBtn[6] DEFINE DIALOG oPrincipal TITLE "Radio JJG" ; SIZE ScreenWidth(), ScreenHeight() @ (( ScreenHeight()/6 ) * 0) +10, 020 BUTTON aBtn[1] PROMPT "Ventas" OF oPrincipal ; SIZE ScreenWidth()-40, ...
by xfood
Mon Oct 08, 2018 7:55 pm
 
Forum: FiveTouch
Topic: Mi primera Aplicación con Fivetouch
Replies: 2
Views: 1811

Mi primera Aplicación con Fivetouch

... Function WndPrincipal() Local oPrincipal Local aBtn[6] DEFINE DIALOG oPrincipal TITLE "Radio JJG" ; SIZE ScreenWidth(), ScreenHeight() @ (( ScreenHeight()/6 ) * 0) +10, 020 BUTTON aBtn[1] PROMPT "Ventas" OF oPrincipal ; SIZE ScreenWidth()-40, ...
by jtscalpe
Sat Sep 16, 2017 10:50 am
 
Forum: FiveTouch
Topic: Mi primera Aplicación con Fivetouch
Replies: 2
Views: 1811

Re: tableta de captura de firma en formato digital

... en el metodo protocolHelper.resizeAndFlatten en javascript es var stuImage = protocolHelper.resizeAndFlatten(unescape(filename), 0, 0, 0, 0, caps.screenWidth, caps.screenHeight, encodingMode, enumScale.Scale_Fit, false, 0) En harbour lo he traducido y los valores que envio a la funcion son los ...
by miarcod
Fri Sep 15, 2017 12:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: tableta de captura de firma en formato digital
Replies: 15
Views: 5039
Next

Return to advanced search