Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6 and navigation buttons
Message
 
À
07/10/2000 18:14:30
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00426534
Message ID:
00428824
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform