Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suspend form refresh?
Message
De
09/04/1998 08:55:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00090654
Message ID:
00090729
Vues:
31
You should be able to use the LockScreen property of the form. Setting this property to .T. tells VFP to freeze the form in it's current state and will perform a batch refresh. Once the sort operation (or whatever code needs to run) is finished, set the LockScreen property back to .F.

HTH.

Randy

>Is it possible to tell foxpro to temporarily suspend any refreshes to a form? During a listbox sort method, the list is trying to keep up with what's happening in the method and it's slowing things down. As a test, I set the visible property to false, do the necessary code, then set the visible property back to true. This is ok, but not visually appealing (albeit better than what it does if I don't set the visible off). Can you some how tell foxpro "Hey, stop refreshing the form until further notice"?
>
>To see what I'm talking about, create a list with multiselect=.T. and populate it with a good number of rows. Next make a command button that selects all items in the list. You'll see each item get selected one by one (in a matter of speaking). (My code does a for x = 1 to thisform.lstList.listcount and sets the Selected property to true for each item. If there's a quicker, better way, I'd like to know!)
>
>
>Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform