Sets the position and size of the viewer window. This parameter affects the first call to an .ewriter file only. Subsequent calls (if the .ewriter file has been opened already) will not change the window position at runtime.
Pixel values are absolute physical pixels. On high resolution displays, you must take the system DPI into account, because eViewer.exe is DPI-aware. The stayontop option applies to the Windows version only.
Pixel values are logical pixels that map to the default size of a non-retina display. The values may be increased by MacOS depending on the display type and user settings. The stayontop option is ignored, there is no equivalent for this on MacOS.
Values |
Example |
---|---|
left,top |
defpos=50,50 Creates the eViewer window at 50/50 pixels of the screen. Window size is initialized from the default position specified in the eWriter file and remembered after the user has viewed this file once. |
left,top,width,height |
defpos=50,50,800,400 Creates the eViewer window at 50/50 pixels of the screen, with a width of 800 and a height of 400 pixels. |
left,top,width,height,stayontop
Note: |
defpos=50,50,800,400,stayontop Creates a stay-on-top eViewer window at 50/50 pixels of the screen, with a width of 800 and a height of 400 pixels. defpos=50,50,stayontop Creates a stay-on-top eViewer window at 50/50 pixels of the screen, default width and height. defpos=stayontop Creates a stay-on-top eViewer window, default size and position. |
kioskmode |
defpos=kioskmode Switches the eViewer app into full-screen kiosk mode (window size and position does not apply). Note: |
Note:
All examples are the argument. They must always be preceded by the eViewer app or the eWriter EXE file name if you are using that format on Windows. When using standalone Windows EXE files the file is both the viewer and the target and calls itself.
URL examples eViewer app:
ewriter://<path+filename>?defpos=50,50,700,900,stayontop
ewriter://<path+filename>?defpos=50,50
ewriter://<path+filename>?defpos=kioskmode