IDE versus MSG Box - Field Tabstops

Geoff Canyon gcanyon at gmail.com
Sat Aug 17 19:04:38 EDT 2013


On Fri, Aug 16, 2013 at 12:57 PM, Jim Lambert <jiml at netrin.com> wrote:

> >  get the backcolor of someControl as {colorName | RGBcolor | HEXcolor}


I definitely like the "as" syntax. Not to stir up a dead conversation, but
the tabs situation could be cleanly solved in the same way:

set the tabs of fld 3 to myList -- could be tabstops, tabwidths, or a mix
put the tabs of fld 3[ as stops|widths] -- defaults to stops

tabstops would then be a deprecated synonym for tabs

For colors, the "color" part itself seems unnecessary:

get the backcolor of someControl[ as {Name|RGB|HEX}]

Hopefully the default would be RGB.

And there is the question of what to return if asked for Name and there is
no name for the exact color. The nearest color? RGB instead?



More information about the use-livecode mailing list