Page 7 of 10

Re: the properties

Posted: Tue Jun 04, 2013 9:51 am
by monte
Right... that's what I do now and I don't mind doing it... I was mainly thinking of the properties property because we are losing data if we don't get all the unshared properties... but I think it behaves as expected... then I got carried away with the idea of implementing it as a separate property... but I don't think it will pass the first test in finding a good name for it ;-)

Re: the properties

Posted: Tue Jun 04, 2013 5:44 pm
by mwieder
but I don't think it will pass the first test in finding a good name for it ;-)
I'm not wild about some of the names we've currently got.
How is it that you can request the "hilitedbutton" of a group but not the "highlightedbutton"?

Re: the properties

Posted: Wed Jun 05, 2013 10:49 am
by LCMark
How is it that you can request the "hilitedbutton" of a group but not the "highlightedbutton"?
I expect 'hilite' was used because it was the 'standard' spelling in the computer world (http://en.wiktionary.org/wiki/hilite).
We also have 'color' rather than 'colour', and 'behavior' rather than 'behaviour'... So you could say the engine vocabulary is Computer Oriented US English :)

Re: the properties

Posted: Wed Jun 05, 2013 11:16 am
by Janschenkel
Maybe we could provide Oxford-dictionary synonyms in the language? *ducks*

Jan Schenkel.

Re: the properties

Posted: Wed Jun 05, 2013 6:03 pm
by mwieder
@runrevmark- In spite of that "wiktionary" entry (which does, btw, say it's "nonstandard"), I've never seen that in any other computer language except Director. I think at the very least we should allow "highlight" as a synonym so we don't look like idiots.

Re: the properties

Posted: Wed Jun 05, 2013 6:07 pm
by LCMark
@mwieder - I was just trying to find some vague historical justification for it because the decision to spell it that way was made long before I had any involvement... It might be that it was a misspelling used a lot of years ago, or maybe for compatibility with something else.

Re: the properties

Posted: Wed Jun 05, 2013 6:16 pm
by mwieder
@runrevmark- from memory because I don't have the references handy right now, I think it's probably a holdover from HC syntax. Doesn't excuse the lack of a synonym, though. What I'd like to suggest is deprecating "hilite" and encouraging "highlight".

Re: the properties

Posted: Wed Jun 05, 2013 6:22 pm
by LCMark
@mwieder: That certainly sounds like a fair suggestion - either that or just wait until we get to 'Clean Syntax' and the script translator and 'hilite' can go away forever ;)

Re: the properties

Posted: Wed Jun 05, 2013 7:25 pm
by jacque
It is indeed HC syntax. But HC also accepted "highlight", "hilight", and "hilite". :)

Re: the properties

Posted: Wed Jun 05, 2013 8:41 pm
by LCMark
This does open an interesting question - should variant spellings be a part of the language, or should we just say 'all tokens should be spelt according to dictionary X'? I've started a separate topic on that to see what people think.

Re: the properties

Posted: Wed Jun 05, 2013 11:07 pm
by mwieder
@Jacque- see the other thread, but "hilitedButton" is ok, while "highlightedButton" is not.

Re: the properties

Posted: Thu Jun 13, 2013 4:15 am
by monte
Looks like there is a bit of backlash about not returning unset values... I'm happy to reverse that but I think it was @runrevmark that wanted it.

To deal with the colour/pattern issue we could not return a color if that pattern is set but otherwise return a color (empty or otherwise)...

There is also some interest in a propertyNames of controlType property/function but I think that's a separate topic.

The other thing is I think it should be checked for abbreviations due to the recent discussion about abbreviations I'm thinking the properties should return the full property name...

Re: the properties

Posted: Thu Jun 13, 2013 4:57 am
by monte
Thinking about this some more I think that an empty value has meaning and should be returned... If you are applying properties from one object to another and skip the empty ones then the target object may already have values for those so it will union the properties rather than apply empty to allow inheritance... So... just waiting for confirmation from @runrevmark and I'll fix this up ASAP...

Re: the properties

Posted: Thu Jun 13, 2013 7:44 am
by jacque
I think the docs describe that behavior - - an empty property does not replace an existing one in the target object.

Re: the properties

Posted: Thu Jun 13, 2013 7:51 am
by monte
where does it say that?