You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
global DW as integer // max device width as a global var
global DH as integer // max device height as a global var
global WW as integer // Window width as a global var
global WH as integer // window height as a global var
global VW as integer // virtual width as global var
global VH as integer // virtual height as global var
DW = GetMaxDeviceWidth() // Max device width in a global var
DH = GetMaxDeviceHeight() // Max device height in a glboal var
winTabTest = 0 // 0 - normal PC, 1 - pc As table.
if GetDeviceBaseName() = "windows" and winTabTest = 0 // normal method for testing
DW = 768 // base resolution for windows
DH = 1024 // base resolution for windows
VW = DW // virtual resolution width
VH= DH // virtual resolution height
elseif GetDeviceBaseName() = "windows" and winTabTest = 1 // normal method for testing as a tablet.
VW = DW // if this windows can also be a tablet then Max device width is applied.
VH = DH // if this windows can also be a table then Max device height is applied.
else // at this current stage this is an android app only so no need to check for ios or linux or mac or html 5, as if this else happens it must be an android.
VW = DW // max device width of the android is applied to virual width
VH = DH // max device height of the android is applied as virtual height.
Login to post a reply