LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lpav.SetLineWidth - Change the width of a line object

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.

Syntax

result = lpav.SetLineWidth(l);

Description

Change the width of the line object used by default.

Remark

Some objects have no line attribut.

Parameters

l - The line width

Return Values

result=1 if ok, nil if error

Example


lp_value = 0;
lp_buffer ="error";

dofile(lp.GetPath().."/config/script/loriotinit.lua");

zz=LPAV_OBJ_FILL_CIRCLE;

-- Créé des objects r s
k=0;
for i=0,20 do
lpav.Insert(10*i,1,9,9,zz);
lpav.SetBrush(0,255,0);
lpav.SetLineWidth(i);
lpav.SetLineColor(i*5,i*10,0);
end

lp.Trace("fin");
lpav.RefreshMap();





www.loriotpro.com