Hello! I what to get real size of the client screen. How can i do it?
Like this:
...
canvas = CreateObject("roImageCanvas")
...
sizes = canvas.GetCanvasRect()
...
But this code returns to me the object with size, which i set early, not real.
Hello! I what to get real size of the client screen. How can i do it?
Like this:
...
canvas = CreateObject("roImageCanvas")
...
sizes = canvas.GetCanvasRect()
...
But this code returns to me the object with size, which i set early, not real.
Take a look at roDeviceInfo. GetDisplaySize() should get you what you’re looking for.
“TheEndless” wrote:
Take a look at roDeviceInfo. GetDisplaySize() should get you what you’re looking for.
Yes, thanks! For setting size as full screen we can use empty object like this:
canvas.SetCanvasRect = { x: 0, y: 0, w: 0, h: 0 }
If I right understand.