MatteBorder setting

As shown in the Servoy documentation, this example works:

elements.elem.border = 'LineBorder, 1, #999999';

I would like to have it with MatteBorder instead of LineBorder, but can’t find the correct syntax

elements.elem.border = 'MatteBorder, ...';

I tried the following and some variants of it

elements.elem.border = 'MatteBorder, 0, 1, 0, 0, #999999';

but can’t get it to work. Has anyone the correct syntax using MatteBorder for an element?

Regards,

Hi Robert,

try this:
elements.btnCancel.border = solutionModel.createMatteBorder(0,1,1,0,‘#c0c0c0’)

Regards,
Hendrick

Hi Hendrick

Thanks, that works.

Regards,