General information
Category:
Forms & Form designer
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
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