[RPG/JS] Screen dimensions
Posted: Wed May 24, 2017 1:52 am
Is it possible to get the device screen dimensions from within a script? Maybe using the q_getSystemValue function?
A place for LongRange Mobile developers to ask questions, give answers and share tips.
https://longrange.lansa.com.au/
Code: Select all
lrexec(
function()
{
this.q_getSystemValue("DEVICE-SCREEN-SIZE-WIDTH");
},
function(value)
{
this.console("screen-width = " + value);
this.q_getSystemValue("DEVICE-SCREEN-SIZE-HEIGHT");
},
function(value)
{
this.console("screen-height = " + value);
},
}