FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Multi-Monitor Screen Size/DPI
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Multi-Monitor Screen Size/DPI
Posted: Fri Dec 20, 2019 07:36 AM
hi,

i have found in c:\fwh\source\function\getsysin.prg

---
Code (fw): Select all Collapse
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" :-)

what i mean are those Function used for relative or absolute Size :-)
if these function is used for relative Size i like to request 2 new HB_FUNC using
Code (fw): Select all Collapse
#define DESKTOPVERTRES 117 
#define DESKTOPHORZRES 118


---

Code (fw): Select all Collapse
function ScreenHeightMM()
function ScreenWidthMM()

not tested yet. will it return mm for pixel :-)

---

Code (fw): Select all Collapse
function ScreenSize( lInches )

on my 1600x1200 i got sometging with 500 ... hm
with .T. something with 24.xx ... hm

---

Code (fw): Select all Collapse
function FW_GetMonitor()

this now what i want to know how FiveWin work

let say you have 2 x Monitor with Different Resolution so Scale might also be different.
if you put your App between both Monitor how will it look like when 1st is 100% and 2nd 150% :-)

i mean does a FiveWn App will react on those Situation or do i have to make App "DpiAware" :-)
greeting,

Jimmy

Continue the discussion