General information
Category:
Forms & Form designer
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only