I have managed to get the data grid to resize using this script from an earlier post I made on a similar subject.
This resizes the data grid on the last message , deleting the earlier ones (see script below). I wonder if the reason it was not working is because the redrawing of the data grid could not keep up with the resizeStack messages? Does this sound plausible as there are a lot of items in the build-up of a data grid? (RunRev, can we have a native data grid please). The data grid in question is 8 columns (2 hidden) and 20 rows plus the header row. As the data is supplied by the GetDataForLine pLine,@pDataA, I presume the data grid asks for the data all over again as the number of rows may have increased or decreased. This would again add more overhead in redrawing. Does this also sound plausible? (RunRev, can we have a native data grid please). --------------------- on resizeStack tWidth,tHeight repeat for each line aLIne in the pendingMessages if aLine contains "doResizeStack" then cancel item 1 of aLine end repeat send doResizeStack to me in 1 milliseconds end resizeStack --------------------- on doResizeStack put the width of stack "THFinancials" into tSW put the left of group "tranTable" into tGL put tSW - tGL into tGW set the width of group "tranTable" to tGW set the left of group "tranTable" to tGL end doResizeStack —————————— All the best Terry On 08 Oct 2014, at 21:08, Peter Haworth <p...@lcsql.com> wrote: > Do you have liveResizing on? If so, the resizeStack message is sent > continuously as the stack is being resized and the "old" parms are the same > as the "new" parms from the previous resizeStack message. > > Each of your put statements to the message box overwrites the previous one > so what you see there is the final one after the user has finished the > resize. > > I can't explain the empty "old" parms in one of your examples. > > Pete > lcSQL Software <http://www.lcsql.com> > Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and > SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html> > > On Wed, Oct 8, 2014 at 11:48 AM, Terence Heaford <t.heaf...@btinternet.com> > wrote: > >> Even more woes using this simple script: >> >> on resizeStack newWidth,newHeight,oldWidth,oldHeight >> >> put "newWidth = " & newWidth & "," & "newHeight = " & newHeight & "," & >> "oldWidth = " & oldWidth & "," & "oldHeight = " & oldHeight >> >> end resizeStack >> >> Zoom window (enlarge): >> >> newWidth = 1680,newHeight = 1024,oldWidth = 1541,oldHeight = 954 >> >> Zoom window (contract): >> >> newWidth = 1080,newHeight = 722,oldWidth = 1082,oldHeight = 723 >> >> Zoom window again (enlarge): >> >> newWidth = 1680,newHeight = 1024,oldWidth = 1672,oldHeight = 1021 >> >> Zoom window again (contract): >> >> newWidth = 1080,newHeight = 722,oldWidth = 1082,oldHeight = 723 >> >> >> Switch to another card, zoom window then switch back to original card >> Zoom window (enlarge) >> >> newWidth = 1680,newHeight = 1002,oldWidth = ,oldHeight = (where have >> the sizes gone)? >> >> >> Now on the original card >> Zoom window again (contract): >> >> newWidth = 1080,newHeight = 722,oldWidth = 1123,oldHeight = 744 >> >> >> >> The sizes are all over the place, can someone please explain why? >> >> >> All the best >> >> Terry >> _______________________________________________ >> 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 >> > _______________________________________________ > 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 _______________________________________________ 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