One of the things that the nav controls in the parent form do is refresh the 
grid in the child form. Which is part of what is making troubleshooting this so 
frustrating. Once the child form stops refreshing from the parent form 
movement, it just plain refuses to work the way I want. If I activate the child 
form by clicking on it, the grid immediately jumps to the right row and 
hilights, etc.

rk


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Tracy Pearson
Sent: Friday, August 21, 2009 5:03 PM
To: [email protected]
Subject: RE: grid fun & games

If the user clicks to a different form, there is a LostFocus event of the
form you could use.
If the user is going to a different object on the form, you might need your
other form objects to call a form method from the When or GotFocus event.
However, I'm not sure that's what you need. Perhaps in the place you need to
change the grid position, you might want to get thisform.activecontrol
(which if no control is active can error. I check if it's valid with
[type("thisform.activecontrol.name") == "C"]) call grid.setfocus then move
the recordsource pointer. Sometimes, just a Grid.Refresh() updates the
behavior you see.

HTH,
Tracy



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd04406588a4...@ackbwddqh1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to