IDE versus MSG Box - Field Tabstops

Richard Gaskin ambassador at fourthworld.com
Thu Aug 15 14:33:39 EDT 2013


Geoff Canyon wrote:
> On Wed, Aug 14, 2013 at 5:46 PM, Richard Gaskin wrote:
>
>> If that weren't the case it would mean that Mark Waddingham wasted his
>> time adding the tabWidth property, and I don't think I've ever seen Mark
>> willfully waste his time.
>
> Before you worry too much about how Mark spends his time ;-)
>
> I wrote this behavior in about five minutes, so I can't image it took him
> any longer than that, even working in C.
>
> setProp xTabWidths X
>    -- sets the tabStops of the target based on a set of tabWidths
>    repeat for each item i in X
>       add i to T
>       put T & comma after S
>    end repeat
>    set the tabStops of me to char 1 to -2 of S
> end xTabWidths
>
> getProp xTabWidths
>    -- returns the tabWidths of the target
>    put 0 into LT
>    repeat for each item i in the tabStops of me
>       put (i - LT) & comma after W
>       put i into LT
>    end repeat
>    return char 1 to -2 of W
> end xTabWidths

Mark already spent his time on that: rather than require us to write 
scripts to get consistent behavior from tabStops, we can now use the 
tabWidths property.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list