Questions: Setting the borderWidth (lineSize) of a graphic through script

Scott Rossi scott at
Fri Jan 29 12:18:41 CET 2016

Do you really want to adjust the border property instead of the lineSize /

set the lineSize of grc "XY" to 10
set the foreColor of grc "XY" to "red"


Scott Rossi
Creative Director
Tactile Media, UX/UI Design

On 1/29/16, 3:01 AM, "use-livecode on behalf of Roland Huettmann"
<use-livecode-bounces at on behalf of
roland.huettmann at> wrote:

>Using LC 7.1 / Windows 8.1
>I am trying to find a way of setting the borderwidth and bordercolor of a
>newly created graphic through script. It does not work.
>But it is possible using the Property Inspector.
>The following instructions fail:
>on mouseUp
>   set the borderwidth of graphic "XY" to 10
>   set the bordercolor of graphic "XY" to red
>end mouseUp
>Strangely enough, when I am asking for the these property values (put the
>borderwidth of graphic "XY") then it is the set value and will be 10 in
>this case. It renders visually with 1 or 2, and the Property Inspector
>gives a value of 2.
>But setting other properties such as background color etc. is working.
>Maybe I am overlooking something?
>use-livecode mailing list
>use-livecode at
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:

More information about the use-livecode mailing list