Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer and ActiveX
Message
From
21/05/2002 08:07:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Timer and ActiveX
Miscellaneous
Thread ID:
00659280
Message ID:
00659280
Views:
63
I've got two instances of the same ActiveX ( FlyTreexPro which is tree/grid in one ) on my form . Upon selection cell in one the other is cleared and completely rebuilt. There were reasons to defer code responsible for rebuilding to timer event instead doing it directly in OnChangeSelection event. The same code ( just form method rebuild_item_path ) is run noticeably slower from the timer. Funnily that putting
wait window "Rebuiding control" timeout 1
in the beginning of the method makes it to behave better. Any clues what's going on. I disable timer immediately when event is invoked .

I enable timer at the very end of OnSelection event

*OnChangeSelection event
* prepare parameters
thisform.parameter1 = this.cellvalue

* could bu run here but deferred till timer event
* thisform.build_item_path(thisform.parameter1)
*
thisform.mytimer.enable = .t.
===================================

* Timer event
this.enable = .f.
thisform.build_item_path(thisform.parameter1)

Thank you
Michael
Next
Reply
Map
View

Click here to load this message in the networking platform