Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh on pageframes
Message
 
 
À
14/06/2001 14:54:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00519586
Message ID:
00519668
Vues:
17
Add a property to your pageframe class called lRefresh. Give it assign method:
if m.vNewValue
   for each loPage in this.Pages
       loPage.Refresh()
   next
endif
In your form.Refresh do thisform.SetAll(.t.,'lRefresh') (or whatever syntax you should use).
All of this from the top of my head, not tested.

That's it.

This is Trey Wallpole idea to execute some custom code using Assign method.

>>Unfortunately still you need :( But might shorten the code :)
>>
for each oControl in thisform.Controls
>>   if upper(oControl.BaseClass) = 'PAGEFRAME'
>>      for each oPage in oControl.Pages
>>         oPage.Refresh()
>>      endfor
>>   endif
>>endfor
Cetin
>
>Anyone know if MS will resolve this issue?
>
>BTW, is that taking care of all sub controls as well such as a pageframe within a pageframe?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform