LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.
‘string’ = lpav.RequestString('box_caption');
The lpav.RequestString LUA function displays a dialog box for retrieving a character string.
Warning! If you use this function, the main thread of your ActiveView is blocked throughout the time during which the dialog box is displayed.
‘box_caption’ A comment inside the dialog box
‘string’ The character string input by the user
Return nil if an error occurs
The following example move some object with the value input by the user.
shift=lpav.RequestString("Shift to x ?");
Warning! In this example we can notice that some widgets have not been offset. This is because it is impossible to move an object graph outside the display area of a ActiveView. In our case, the loaded ActiveView defines constraints that prevent the rightward shift of 100 pixels for large objects