Multi-Monitor Screen Size/DPI

Multi-Monitor Screen Size/DPI

Postby Jimmy » Fri Dec 20, 2019 7:36 am

hi,

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

---
Code: Select all  Expand view
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: Select all  Expand view
#define DESKTOPVERTRES 117
#define DESKTOPHORZRES 118


---

Code: Select all  Expand view
function ScreenHeightMM()
function ScreenWidthMM()
 

not tested yet. will it return mm for pixel :?:

---

Code: Select all  Expand view
function ScreenSize( lInches )

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

---

Code: Select all  Expand view
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
User avatar
Jimmy
 
Posts: 1585
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 84 guests