0
Under review

script move page

feri setiawan 4 years ago in i2 Control V2.2 updated by Dmitry - support (expert) 4 years ago 3

Hello All


How to script move page if token butoon?

Under review

Hello!


Please describe in detail your task. If I understand correctly, you want to switch the page by pressing the button?

ok sory now i can describe detail my task..



example describe detail:


if page one position for sketch image :


left 100

right 150

width 120

height 250


and then if i want show page two with token button. This page show with sketch image position different with page one into ...


left 70

right 100

width 380

height 750


so how to call script for show the page two?

Hello!


You can change the position only of popups and items. To change the position of pages is impossible.

So, in order to change the position of pop-up through scripts, you should refer to the corresponding item properties.

For example:


IR.GetPopup("Popup 1").X = 70;
IR.GetPopup("Popup 1").Y 100;
IR.GetPopup("Popup 1").Width = 380;
IR.GetPopup("Popup 1").Height = 750;

In order to display a page, you need to use the method IR.ShowPopup();


For example:

IR.ShowPopup('Popup 1');