6.1

Monte Goulding monte at sweattechnologies.com
Wed Jul 3 17:25:43 EDT 2013


On 04/07/2013, at 7:04 AM, Peter Haworth <pete at lcsql.com> wrote:

> The description of the properties property improvements says:
> 
> "It returns the minimal set of properties of an object to allow it to be
> recreated exactly."

I think this statement is still correct even though it now returns empty values if they aren't set.
> 
> I thought that had been changed.
> 
> It also says
> 
> "When setting properties which contain both non-empty color and pattern
> properties of the same type, the color property will take precedence."
> 
> Maybe I'm misunderstanding what that means but it seems to be contradict
> what the dictionary entries for the various xxxcolor properties say, eg "If
> an object's *foregroundPattern* is set, the pattern is shown instead of the
> color specified by *foregroundColor*."

It doesn't contradict it. Setting a pattern will unset a color and setting a color will unset a pattern. That's why we needed to have a consistent precedence rule. Same for image filename/text in that case text has precedence.

Cheers

--
Monte Goulding

M E R Goulding - software development services
mergExt - There's an external for that!








More information about the use-livecode mailing list