Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where did Click initiated?
Message
From
09/08/2012 08:29:42
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01550194
Message ID:
01550198
Views:
61
This message has been marked as a message which has helped to the initial question of the thread.
>Hi,
>
>I need to determine in the Click method of a button if this click was done by a user (mouse click) or some other part of the program called cmdThisButton.click() programmatically. Is this possible? TIA.

:o)
That is why Events must call methods.
Move all code from Click() to some custom event.
Than its easy:
Add parameter to this methiod that will show you from where it is called.
I.e. from Button.Click call this method that way:
thisForm.MyButtonClickHandler(.t.)

* and from everywhere else:

thisForm.MyButtonClickHandler(.f.) && or thisForm.MyButtonClickHandler()
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform