Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6 and navigation buttons
Message
 
To
07/10/2000 18:14:30
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00426534
Message ID:
00428824
Views:
16
Hi Raymond

Can't say much about the NavButtons. I don't use them. But concerning the grid you will have to do a Grid.SetFocus() after changing the record to see the record pointer movement in the grid. A simple refresh won't be sufficent.

One possibility would be placing a piece of code like the following into the grid's refresh event:
LOCAL loLastControl
IF TYPE('_SCREEN.ActiveForm.ActiveControl') = 'O' AND NOT ISNULL(_SCREEN.ActiveForm.ActiveControl)
	loLastcontrol = _SCREEN.ActiveForm.ActiveControl
	this.setFocus()
	loLastcontrol.setFocus()
ENDIF
This should reset the focus to the Navbutton, even when it's on a toolbar. (I hope, not tested :) )

Regards
Markus
Previous
Reply
Map
View

Click here to load this message in the networking platform