On 1/29/11 1:05 PM, Jim Ault wrote:
It depends on the authors desired logic.
From the subject title, I'm assuming he wants "natural" reading order. Right to left, top to bottom. One of the problems I ran into (and the OP mentioned) is that if a field has a Y value slightly below another field, but not by much, our eye will see it as "in line" with the field next to it, but a sorting algorithm will see it as "below" the field next to it.
I tried looping to find successive topleft fields repeatedly, and that almost works, but you still get Y-offset problem. I'm thinking you'd need to define a cutoff point where a field location is arbitrarily defined as "below" the current line; probably the height of the field, I guess.
To John: I think I'd cop out and avoid the whole issue by providing "drop boxes" where fields will snap to known locations so that I know what order to read them in.
-- 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