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 | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode