How to change window size in ZP Lite 5.9.8.0

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18
I am trying to change my screen resolution using the C# instance.SetWindowSize(1600, 900); snippet but I'm not getting the expected results.

Testing this setup in whoer[DOT]net website I get this window size 1551x781 (1600x900) and the other profile options as follows:

Profile.AvailScreenHeight | 50505
Profile.AvailScreenWidth | 50505
Profile.ScreenSizeHeight | 50505
Profile.ScreenSizeWidth | 50505
Profile.OuterHeight | 954
Profile.OuterWidth | 1288
Profile.OuterHeightShift | 101
Profile.OuterWidthShift | 16
Profile.ScreenLeft | -8
Profile.ScreenTop | -8
 

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18
Changing it to instance.SetWindowSize(1700, 900); I get:

----------------1563x781 (1600x900)----------------

Profile.AvailScreenHeight | 50505
Profile.AvailScreenWidth | 50505
Profile.ScreenSizeHeight | 50505
Profile.ScreenSizeWidth | 50505
Profile.OuterHeight | 954
Profile.OuterWidth | 1288
Profile.OuterHeightShift | 101
Profile.OuterWidthShift | 16
Profile.ScreenLeft | -8
Profile.ScreenTop | -8

Changing it to instance.SetWindowSize(1800, 900); I get the same:

----------------1563x781 (1600x900)----------------

Profile.AvailScreenHeight | 50505
Profile.AvailScreenWidth | 50505
Profile.ScreenSizeHeight | 50505
Profile.ScreenSizeWidth | 50505
Profile.OuterHeight | 954
Profile.OuterWidth | 1288
Profile.OuterHeightShift | 101
Profile.OuterWidthShift | 16
Profile.ScreenLeft | -8
Profile.ScreenTop | -8
 

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18
I have attached my testing file. Please note that I also tried playing with the other profile.*settings* without luck.

What I am trying to achieve is a window size of 1366X748 or any other *custom* window size
 

Вложения

  • 22,2 КБ Просмотры: 132

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18
From https://help.zennolab.com/en/v5/zennoposter/5.9.8/webframe.html#topic700.html

Please explain the following properties as I find them very ambiguous and trying to understand them by testing values on each of them is almost impossible:

Property AvailScreenHeight Gets or sets the height of the screen (excluding the Windows Taskbar).
Property AvailScreenWidth Gets or sets the width of the screen (excluding the Windows Taskbar).
Property OuterHeight Gets the total height of the screen.
Property OuterHeightShift Gets or sets the height of the header and screen frame.
Property OuterWidth Gets the total width of the screen.
Property OuterWidthShift Gets or sets the width of the screen frame.
Property ScreenSizeHeight Gets or sets the height of current window.
Property ScreenSizeWidth Gets or sets the width of current window.

Also, in my current version of PM (v5980) I don't have OuterWidth and OuterHeight properties. Why is that ?

PS: I already know that working with window size and screen resolution does not work in PM but only in ZP
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)