Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple control refresh problem
Message
From
15/05/2004 18:49:24
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Multiple control refresh problem
Miscellaneous
Thread ID:
00904406
Message ID:
00904406
Views:
44
I am having a problem with form objects (especially a particular combobox) that repeatedly 'flash' when a form is being instantiated for the first time. Upon setting a breakpoint on the first line of the combo.refresh method I find it runs 4 times before the form 'settles'!

At the 1st break the call stack is...
Myform.Combo.refresh, BaseClassForm.refresh, MyForm.refresh

At the 2nd break the call stack is...
MyForm.Combo.refresh, MyForm.refresh

At the 3rd break the call stack is...
MyForm.combo.refresh

MyForm.refresh contains the code...
DODEFAULT() && calls baseclassform.refresh
other form-specific code

BaseClassForm.refresh contains the code...
DODEFAULT()
other generic form refresh code

MyForm.combo.refresh contains the code
DODEFAULT() && calls generic combo refresh code
other instance-specific refresh code

It appears as though the combo is refreshing at every level of a refresh call. How can I avoid this, yet still still make sure the generic default code runs at form and object level?

Any help would be appreciated.

Alan Harris-Reid
Next
Reply
Map
View

Click here to load this message in the networking platform