On Tue, Sep 20, 2011 at 5:22 AM, Marty Knapp <martykn...@comcast.net> wrote: > I have a datagrid with several columns, column 4 of which contains a number. > Under the datagrid I have placed a field that keeps a total of the values in > this column. I would like this field to match the width of column 4 and > align itself directly under it so that if a user changes the column width, > my total field will realign itself with the width and placement of the > column. How would I go about doing this?
Hi Marty, A possible solution is to use the datagrid's dgColumnWidth property, inside the datagrid group script, to get the size of a column being resized: setprop dgColumnWidth [pColumn] pValue put pColumn & "Sum" into tTheSumField updateRectOfField tTheSumField, pValue pass dgColumnWidth end dgColumnWidth Where: - pColumn is the column name - pValue is the column width Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc _______________________________________________ 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