Re: Datagrid: multiple hilites

2009-10-20 Thread Trevor DeVore
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

Re: Datagrid: multiple hilites

2009-10-20 Thread David Bovill
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

Re: Datagrid: multiple hilites

2009-10-20 Thread Trevor DeVore
On Oct 20, 2009, at 1:18 PM, David Bovill wrote: 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

Re: Datagrid: multiple hilites

2009-10-17 Thread David Bovill
Thanks Trevor - silly mistake - maybe that will fix my other problem with scrolling - thanks! The other thing I needed to do was: set the dgProp [animate selections] of dataGrid to false as otherwise the automatic behavior would scroll to the first selected record. These animate features are new

Re: Datagrid: multiple hilites

2009-10-17 Thread David Bovill
Here are some handlers that seem to work most of the time. Could be improved by adding shortcut for fixed height rows, and it seems like the geometry gets a little messed up in some circumstances (maybe when adding rows using AddData?) - but it is a start, perhaps the beginning of a feature

Re: Datagrid: multiple hilites

2009-10-17 Thread Trevor DeVore
On Oct 17, 2009, at 7:06 AM, David Bovill wrote: Thanks Trevor - silly mistake - maybe that will fix my other problem with scrolling - thanks! The other thing I needed to do was: set the dgProp [animate selections] of dataGrid to false as otherwise the automatic behavior would scroll to the

Re: Datagrid: multiple hilites

2009-10-17 Thread Trevor DeVore
On Oct 17, 2009, at 9:54 AM, David Bovill wrote: Here are some handlers that seem to work most of the time. Could be improved by adding shortcut for fixed height rows, and it seems like the geometry gets a little messed up in some circumstances (maybe when adding rows using AddData?) - but

Re: Datagrid: multiple hilites

2009-10-17 Thread David Bovill
2009/10/17 Trevor DeVore li...@mangomultimedia.com There are some scrolling handlers that are documented: ScrollIndexIntoView/ScrollLineIntoView There is also an undocumented ScrollRectIntoView command you can find in the Data Grid button. You might want to take a look at those. Thanks -

Re: Datagrid: multiple hilites

2009-10-17 Thread Trevor DeVore
On Oct 17, 2009, at 11:00 AM, David Bovill wrote: Thanks - but ScrollRectIntoView would rely on ## See dgRectOfIndex in order to get rect of a control in the data grid. - and this is broken for cases in which the rows are scrolled above the grid (perhaps when they go above the screens

Re: Datagrid: multiple hilites

2009-10-17 Thread David Bovill
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

Datagrid: multiple hilites

2009-10-16 Thread David Bovill
I've upgraded to the latest datagrid - fixes the add to end issue reported earlier. So naturally that's led to another one :) I want to allow the user to quickly select multiple lines of a form by clicking on them - with auto select unless you hold down the command key. I scripted a way to do

Re: Datagrid: multiple hilites

2009-10-16 Thread Trevor DeVore
On Oct 16, 2009, at 6:58 PM, David Bovill wrote: command tweet_ToggleHilite put the dgControl of me into dataGrid if the dgProp [auto hilite] of dataGrid is false then put the dgLine of me into myIndexNum put the dgHilitedIndex of dataGrid into indexNums set the wholematches