Alright, but as I said you might have to make changes to make it work.
Well here is some piece of code:
g = exports.dxGUI
window = g:dxCreateWindow(getThisResource(),-1,-20,1922,1100,"test", white, default, g:dxGetDefaultTheme())
but = g:dxCreateButton(getThisResource(),160,90,300,80, "test", window)
fresx = 1920
fresy = 1080
sresx = 1024
sresy = 768
[code]
Now this will create a window in 1922 x 1100 (to make it full screen, outside of the screen)
Now you will need to get the users GUI screen size, i haven't cioded that but I guess you can make it.
Then you will do something like that:
[code]g:dxSetSize(window, sresx+2,sresy+20)
g:dxSetPosition(window, -1,-20)
local elements = getElementChildren(window) -- the child elements
for k,v in ipairs(elements) do
width,height = g:dxGetSize(v)
g:dxSetSize(v, width*(sresx/fresx), height*(sresy/fresy))
x,y = g:dxGetPosition(v)
g:dxSetPosition(v, x*(sresx/fresx), y*(sresy/fresy))
end
if you don't use dxGui you will have to make some changes to the functions too. Also one more note, if the user has a bigger screen resolution, where it says sresx/fresx it should be like fresx/sresx (well smaller number goes first.)
If you have any other problems with this let me know. I hope I helped.