MatteBorder setting

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

MatteBorder setting

Postby huber » Wed Jun 01, 2016 10:13 am

As shown in the Servoy documentation, this example works:

Code: Select all
elements.elem.border = 'LineBorder, 1, #999999';


I would like to have it with MatteBorder instead of LineBorder, but can't find the correct syntax
Code: Select all
elements.elem.border = 'MatteBorder, ...';


I tried the following and some variants of it
Code: Select all
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,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm

Re: MatteBorder setting

Postby HEKUCH » Wed Jun 01, 2016 11:49 am

Hi Robert,

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

Regards,
Hendrick
Hendrick Kurland

DataBit GmbH
CH-9217 Neukirch an der Thur
HEKUCH
 
Posts: 13
Joined: Thu May 05, 2011 8:02 am

Re: MatteBorder setting

Postby huber » Wed Jun 01, 2016 4:34 pm

Hi Hendrick

Thanks, that works.

Regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 11 guests