Clive Richmond
10-Jun-2010, 12:16 PM
John,
After reading your post Grid Object Entering logic (http://support.dataaccess.com/forums/showthread.php?t=43012) Tom and I have been looking at ways to unify 'The Object Enable / Disable Approach' versus 'The Post Entering Approach'. We like the easy of programming that the first approach offers but not its navigation restrictions while the second approach is more familiar but it has its own navigation restrictions.
We've been able to combine the two by placing a container overlaying the grid. While the grid is disabled any mouse click 'falls through' and is trapped. The co-ordinates are recorded and the equivalent of child entering processed. Assuming this was successful the grid is re-enabled and using the previously record co-ordinates a mouse click done with focus going to the correct row in the grid. Combining this with the property pbGrayIfDisable the new grid head / line navigation is very similar to the way old girds behave.
Tom will add (and correct) anything I've missed tomorrow plus post our prototype. Our question is can a similar sort of 'psuedo' behaviour be implemented in the runtime to do something similar and provide a unified approach?
After reading your post Grid Object Entering logic (http://support.dataaccess.com/forums/showthread.php?t=43012) Tom and I have been looking at ways to unify 'The Object Enable / Disable Approach' versus 'The Post Entering Approach'. We like the easy of programming that the first approach offers but not its navigation restrictions while the second approach is more familiar but it has its own navigation restrictions.
We've been able to combine the two by placing a container overlaying the grid. While the grid is disabled any mouse click 'falls through' and is trapped. The co-ordinates are recorded and the equivalent of child entering processed. Assuming this was successful the grid is re-enabled and using the previously record co-ordinates a mouse click done with focus going to the correct row in the grid. Combining this with the property pbGrayIfDisable the new grid head / line navigation is very similar to the way old girds behave.
Tom will add (and correct) anything I've missed tomorrow plus post our prototype. Our question is can a similar sort of 'psuedo' behaviour be implemented in the runtime to do something similar and provide a unified approach?