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

-----Original Message-----
From: Sytze de Boer
Sent: Friday, August 21, 2009 4:32 PM

I have a similar issue and thought the "lost focus" would overcome my issue
But, I can't find the "lost focus" in the options I need to know when the
user is no longer "focused" on the grid

Please tell me more

S


On Sat, Aug 22, 2009 at 8:03 AM, Tracy Pearson wrote:

> Is the grid losing focus?
>
> -----Original Message-----
> From: Richard Kaye
> Sent: Friday, August 21, 2009 1:57 PM
>
> I have a pair of forms that work together. One form stays on top of 
> the other and has a bunch of data entry and navigation controls. The 
> other form basically has a read only grid which gets populated as records
are added.
> The idea is I can make the grid form active, scroll to a different 
> record and when I select the record in the grid form, the data entry 
> form refreshes with the appropriate values. All works as expected as I 
> navigate in the top form. The grid scrolls, the record mark is in 
> sync, the active row stays in view, etc. However, when I activate the 
> grid form, then make the top data entry form active again and start 
> navigating, the grid stops scrolling/moving/displaying as desired. 
> While I keep banging my head on why this is behaving in this 
> undesirable fashion, I figure toss this one out into the Profox pool 
> and see what I get back...
>
> rk



_______________________________________________
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/002e01ca22a2$c8395f90$58ac1e...@com
** 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