Search found 53 matches: screenheight

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: 548

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 ...
by Silvio.Falconi
Wed Jan 10, 2024 8:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Monitor function error
Replies: 2
Views: 548

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: 2551

Re: FUNCTION ScreenHeight() when automatic hide Taskbar

Dear Jimmy,

very good!

many thanks for sharing it :-)
by Antonio Linares
Sat Jul 23, 2022 2:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FUNCTION ScreenHeight() when automatic hide Taskbar
Replies: 1
Views: 337

FUNCTION ScreenHeight() when automatic hide Taskbar

hi, to use "full" Desktop Size i "automatic" hide Taskbar but than FUNCTION ScreenHeight() give to small Height :shock: so i wrote this #define DESKTOPVERTRES       0x0075#define DESKTOPHORZRES       0x0076FUNCTION ScreenHeightNative()LOCAL hDC, ...
by Jimmy
Sat Jul 23, 2022 5:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FUNCTION ScreenHeight() when automatic hide Taskbar
Replies: 1
Views: 337

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 ...
by Silvio.Falconi
Sat Nov 27, 2021 12:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculate the right position
Replies: 0
Views: 279

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", Round(( screenHeight / MaxRow() ...
by ruben Dario
Sat Jan 16, 2021 1:53 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Compilando Proyecto con MINGW
Replies: 8
Views: 950

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 File If ! Open_File(.F.,'P6_AAAA') Return ...
by RiazKhan
Sat Jun 06, 2020 7:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TITLETEXT Refresh() Arrays...(SOLVED)
Replies: 2
Views: 511

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 File If ! Open_File(.F.,'P6_AAAA') Return ...
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 Design" ...
by Jimmy
Fri Dec 20, 2019 7:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multi-Monitor Screen Size/DPI
Replies: 0
Views: 281

Re: METRO with visible taskbar ?

Mario,
Can You try to adjust the window-height with ScreenHeight() :?:

ACTIVATE WINDOW oWnd MAXIMIZED ;
ON INIT ( oWnd:nHeight := ScreenHeight() , ; // ( + - )
BUILDMETRO(oWnd) )

regards
Uwe :?:
by ukoenig
Wed Jul 24, 2019 6:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: METRO with visible taskbar ?
Replies: 5
Views: 1355

Re: METRO with visible taskbar ?

... - SCRLB_HEIGHT adjusted 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 ...
by MarioG
Wed Jul 24, 2019 12:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: METRO with visible taskbar ?
Replies: 5
Views: 1355

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: 584

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: 6533

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, ( ScreenHeight()/6 ...
by xfood
Mon Oct 08, 2018 7:55 pm
 
Forum: FiveTouch
Topic: Mi primera Aplicación con Fivetouch
Replies: 2
Views: 1851
Next

Return to advanced search