PS to my other post. I found am much better way to do this. First, set up a custom behavior for your column 4. Then in the LayoutControl handler of the custom behavior, add the following code:
*put* the rectangle of field "Total" into myRect *put* item 1 of pcontrolRect into item 1 of myRect *put* item 3 of pcontrolRect into item 3 of myRect *set* the rectangle of field "Total" to myRect Tested it out and seems to work fine. On Mon, Sep 19, 2011 at 8:22 PM, Marty Knapp <[email protected]> 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 > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode> > > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
