Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suspend form refresh?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00090654
Message ID:
00090677
Views:
22
Yes. Just do a THISFORM.Lockscreen=.T. before you update the listbox and a THISFORM.Lockscreen=.F. when you're done. When Lockscreen is .T., no visual changes are shown. Make sure you set it back to .F.! If you don't, the results can be very weird.

>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
Map
View

Click here to load this message in the networking platform