Thanks Pete,
I have very limited experience with datagrids. What message is sent when the user resizes a column? Where in the datagrid would I place my script - in the group script?

Thanks,
Mart K
Hi Marty,
Best I can think of is to get the dgProps["column widths"] property of the
datagrid.  It contains a comma-delimited list of the widths of the columns
so by adding up the first 3 items of the list, you'll get the left edge of
the 4th column, and adding the first 4 items of that list, you'll get the
right edge of the 4th column, both relative to the left edge of the
datagrid.  From that you can figure out thew width and placement of your
field. I don't know if the width includes the separator line between the
columns.
Pete
Molly's Revenge<http://www.mollysrevenge.com>




On Mon, Sep 19, 2011 at 8:22 PM, 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?

Thanks,
Marty Knapp


_______________________________________________
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

Reply via email to