Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User clicks too fast on the toolbar
Message
 
To
23/11/1996 16:31:17
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00013273
Message ID:
00013280
Views:
28
>I just discovered something related if we click too fast on the toolbar before the form finish loading.
>
>My Baseform::Activate(), in some occasions, will activate the enable of some commands on the toolbar. So, when the form starts loading from the Load() event, the commands are .Enabled=.F. on the toolbar. So, if I click on a command on that toolbar while the form has not finish processing the Activate(), I have the situation where the action of that command is executing and my form Activate() is not finish.
>
>So, I tried putting oApp.oToolbar.Enabled=.F. in my form Load() and oApp.oToolbar.Enabled=.T. on my last line of form Activate() but this didn't help. I am still able to make the command action execute before the Activate() finish.
>
>Any comments?

YEah, move the command out of Activate or actually duplicate that command in another method. Activate is one of the last methods to fire. It occurs after the INIT of all objects on the form, after the Form INIT(), after the SHOW(), etc.

HTH,
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform