there are two variablesfe.layout.width - layout width in pixelsandfe.layout.height - layout height in pixelsif you leave it undefined fe.layout.width will be your screen X resolution (like 1920px) and fe.layout.height will be your screen Y resolution (like 1080px)flh and flw - are usually used as a shorter version - so you don't have to type in code "fe.layout.width" all the time - just "flw"but you have to define it first as variableflw = fe.layout.width---So - if you want to use fixed dimensions in pixels - you should first define fe.layout.width and fe.layout.height in pixels.Because if you don't - you'll end up with fixed dimensions and position of your layout elements and variable size of a whole layout.Keep in mind that AM stretches your layout (by default) to fit the screen.So if you use fe.layout.width=640fe.layout.height=480it will look as intended (full screen) on 1024x768 or 800x600 res screen - but it will be stretched horizontally on 1920x1080 screen
And how to create a variable with dimensions of an artwork?fe.layout.width --> the monitor widthfe.image? I would like to create a border around an artwork but each art has its width
Quote from: gionni44 on March 06, 2018, 06:01:08 AMAnd how to create a variable with dimensions of an artwork?fe.layout.width --> the monitor widthfe.image? I would like to create a border around an artwork but each art has its widthfe.layout.width is the canvas dimension, while ScreenWidth and ScreenHeight are constants you can use to get the actual screen resolution.That said, image.width and image.height are the width and height of an artwork on screen.