Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar VCR buttons not refreshing open window
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00040692
Message ID:
00040766
Vues:
35
>Remember, my toolbar has the skipping buttons, not the form, so issuing a THISFORM.REFRESH does not work. Also, any form can be open and used with the toolbar, so I can't say GOODFORM.REFRESH since I won't know which form is open.
Evan,

Your toolbar needs some way of knowing which form is current. A simple way of knowing is to use the _screen.activeform property. Secondly the toolbar should NOT be doing the skipping, it is not the master of the data. Instead have the toolbar buttons do something like this in their click;


_SCREEN.ActiveForm.GoNext()

Make sure you form class has a GoNext, GoPrevious etc. method and in the GoNext (for example) you would;

SKIP
THISFORM.Refresh()

This will work becasue the code is in the fomr not the toolbar, the toolbar just calls the form's code and the form is responsible for its data.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform