Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container in grid not refreshing properly
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00672552
Message ID:
00673099
Vues:
25
Sorry,

Here's a version with the code formatted correctly.

>Hi all,
>
>I ended up putting the following code in the container's refresh() to make it setfocus to each control. This does the trick for now. I guess containers in grids are asking for workarounds (kludges?)
>

>* Briefly setfocus to each control to make refresh work in grid
>IF TYPE('this.ActiveControl.name') = "C"
> loActiveControl = this.ActiveControl && original control with focus
> FOR i = 1 TO this.ControlCount
> IF UPPER(this.Controls(i).baseclass) <> "LABEL"
> this.Controls(i).setfocus()
> endif
> ENDFOR
> loActiveControl.setfocus() && reset to original control
>endif
>DODEFAULT()

Larry Tucker
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform