Field Tabstops oddity (was IDE vs MSG...)

Richard Gaskin ambassador at fourthworld.com
Wed Aug 14 13:53:30 EDT 2013


dunbarx wrote:
> It seems that when an anomalous string for tabStops is set, LC uses a hybrid of tabStops and tabWidths.
>
> I have the following tabStops in a table field (named f55"): "20,10,80".
>
> It would appear that the second stop is to the left of the first stop. Something similar to this has crashed LC with at least one user. For me, though, LC seems to set the first tabStop at 20, then sets a tabWidth of 10, and finally the last tabStop at 80.
>
> on mouseUp
>    set the tabstops of fld "f55" to "20,10,80" -- hybrid tabs
>    wait until the mouseclick
>   set the tabwidths of fld "f55" to "20,10,80" --expands to expected values
> end mouseUp
>
> Feature or bug?

I'd say feature, because it's doing exactly what you asked it to do.  If 
you want to set tab widths 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