Invalid Passport

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10095
Joined: Fri Feb 19, 2010 10:17 am

Invalid Passport

Post by richmond62 » Wed Jun 15, 2022 1:51 pm

I wonder why, when I put this into the messageBox it doesn't work:

Code: Select all

set the borderColor of grc "vv" to "red"

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10095
Joined: Fri Feb 19, 2010 10:17 am

Re: Invalid Passport

Post by richmond62 » Wed Jun 15, 2022 2:05 pm

Answering my own guff again . . .

Because the border of a graphic is NOT it border: its border is its bounding box.

So . . . . how does one move from this:
-
SShot 2022-06-15 at 16.04.16.png
SShot 2022-06-15 at 16.04.16.png (25.19 KiB) Viewed 2286 times
-
to this with a script:
-
SShot 2022-06-15 at 16.04.46.png
SShot 2022-06-15 at 16.04.46.png (25.33 KiB) Viewed 2286 times
-
SShot 2022-06-15 at 16.07.57.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10095
Joined: Fri Feb 19, 2010 10:17 am

Re: Invalid Passport

Post by richmond62 » Wed Jun 15, 2022 2:13 pm

SShot 2022-06-15 at 16.10.11.png
SShot 2022-06-15 at 16.10.11.png (14.37 KiB) Viewed 2281 times
-
NOT obvious at all.

For some stupid reason I did not automatically equate 'border color' in the props palette

with foreGroundColor:
-
SShot 2022-06-15 at 16.11.24.png
SShot 2022-06-15 at 16.11.24.png (8.93 KiB) Viewed 2281 times
-
And why, forbye, would I, FFS?

SparkOut
Posts: 2944
Joined: Sun Sep 23, 2007 4:58 pm

Re: Invalid Passport

Post by SparkOut » Wed Jun 15, 2022 7:36 pm

The property inspector can toggle the property label to show either the description or the property name itself, with one of the settings in the preferences. In both versions, the other description/name is shown as a tooltip on hovering over the label.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10095
Joined: Fri Feb 19, 2010 10:17 am

Re: Invalid Passport

Post by richmond62 » Wed Jun 15, 2022 7:46 pm

That's very useful to know.

Thanks.
-
SShot 2022-06-15 at 21.47.57.png

Post Reply