Whoa! So sorry. I really checked this very thoroughly or so I thought. I turns out not to a datagrid issue, but mine - or should that be a Rev bug??? Goes like this:
I was relying on a handler I've had for decades "rect_CreateTransparentButton" which does what is say on the tin, creates a semi-transparent button at the rect you specify, so you can see the area - one click an it is gone. OK - but :) set the rect of transparentButton to someRect > show transparentButton > that's it! That's the problem ??? The script creates the button with "create invisible button someName", does some stuff, sets the rect and shows the button - so? Well setting the rect of an invisible object off screen does not work?!? It gets limited to the screen rect. OK - it's old code and it would be better to set the templatebutton and then reset it - but still I can feel good about myself and waisting Trevors time right? This is surely a Rev bug :) 2009/10/20 Trevor DeVore <li...@mangomultimedia.com> > On Oct 17, 2009, at 7:02 PM, David Bovill wrote: > > I checked again Trevor. It makes sense that it does not work in cases >> where >> the controls are not cached - where it is broken is when the controls are >> cached but you try to get: >> >> the dgRectOfIndex [1] of dataGrid >> >> and the controls are scrolled heavily, so that the invisible row view >> would >> be above the top of the card. In these cases it does not return the >> correct >> geometry as the invisible row view is limited to the top of the screen and >> no its "true" negative y values. These means that if you try to scroll to >> the first row it does not work. >> > > I just performed the following test and the dgRectOfIndex[1] returned the > proper result. > > 1) Created new Data Grid. > 2) Changed style to "form" > 3) Turned off fixed row height > 4) Turned on "cache controls" > 5) Turned off "persistent data" > 6) Positioned Data Grid at 0,0 > > I then added about 50 or so lines to the Data Grid. Here are results: > > put the dgRectOfIndex[1] of group 1 > 0,0,233,21 > > I then scrolled to the bottom of the Data Grid: > > put the dgRectOfIndex[1] of group 1 > 0,-451,233,-430 > > I then tried scrolling the first index back into view and it worked: > > dispatch "ScrollRectIntoView" to group 1 with the dgRectOfIndex[1] of group > 1 > > Just let me know what steps you are taking and what you are seeing. If > there is a bug that is the only way I can track it down. > > > -- > Trevor DeVore > Blue Mango Learning Systems > ScreenSteps: http://www.screensteps.com > Releasable Revolution Resources for Developers: > http://revolution.bluemangolearning.com > _______________________________________________ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution