Scrolling List Field/Table

J. Landman Gay jacque at hyperactivesw.com
Mon Nov 19 17:14:34 EST 2012


On 11/19/12 12:54 PM, Peter Haworth wrote:
> I'm almost afraid to say this but itlooks like this is pretty easy to do
> with variable spaced fonts too.
>
> I did a simple test with an input field, an output scrolling list field,
> and a button with the following code:
>
> on mouseUp
>     put the hilitedLine of field "Output" into tLine
>     put the formattedwidth of field "Input" into tWidthIn
>     put 100 into tWidthOut
>     subtract tWidthIn from tWidthOut
>     set the tabstops of line tline of field "Output" to tWidthOut & comma &
> 100
>     put tab & field "Input"& tab & tLine into line tLine of field "Output"
> end mouseUp
>
> The text in the input field ended up right justified in the the hilited
> line of the scrolling list field.  I'll no doubt have to deal with some
> corner cases but I think I have right justified columns in my scrolling
> list field.  Very cool!

That's pretty cool. I hadn't thought to use the new paragraph features 
but I like it. They are coming in handy for all sorts of things.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list